[issue28120] Bug in _PyDict_Pop() on a splitted table
Christian Heimes
report at bugs.python.org
Tue Sep 13 09:44:21 EDT 2016
Christian Heimes added the comment:
Good work! This example is a bit easier to understand:
class Cls:
pass
a = Cls()
a.x = 1
a.y = 2
b = Cls()
b.x = 1
print(hasattr(b, 'y'))
print(b.__dict__.pop('y', None))
$ ./python d.py
False
python: Objects/dictobject.c:1743: _PyDict_Pop: Assertion `ix >= 0' failed.
Aborted (core dumped)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28120>
_______________________________________
More information about the Python-bugs-list
mailing list