Serhiy Storchaka added the comment:
Following example causes a crash in debug build:
d = dict.fromkeys(range(100))
for k in range(99):
del d[k]
it = iter(d)
assert next(it) == 99
d.clear()
d[0] = None
next(it)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com