[issue28580] Optimize iterating split table values

Serhiy Storchaka report at bugs.python.org
Thu Nov 3 02:50:12 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28580>
_______________________________________


More information about the Python-bugs-list mailing list