[issue29864] Misuse of Py_SIZE in dict.fromkey()

Serhiy Storchaka report at bugs.python.org
Tue Mar 21 03:39:17 EDT 2017


Serhiy Storchaka added the comment:

Yes, I treat this as a bugfix but I hesitated about backporting it. Py_SIZE works "by accident" and we can't change the layout of PyDictObject structure in maintain branches.

I have backported the fix to 3.6, but not to other branches since PyDict_GET_SIZE was added in 3.6 and other branches would need modifying the patch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29864>
_______________________________________


More information about the Python-bugs-list mailing list