INADA Naoki added the comment:
Before Python 3.6, instance.__dict__.pop(key) didn't trigger this.
But there are many way to trigger this. This bug is live from 3.3.
This script reproduce this issue on Python 3.5.
class C: pass
a = C()
a.a = 1
while True:
a.__dict__.popitem() # convert split table into combined table.
a.a = 1 # convert combined table into split table again.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28147>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com