[issue32176] Zero argument super is broken in 3.6 for methods with a hacked __class__ cell

Dan Snider report at bugs.python.org
Fri Dec 1 17:45:59 EST 2017


Dan Snider <mr.assume.away at gmail.com> added the comment:

So while CO_NOFREE is set in all versions with the example code, it appears only python 3.6 recognizes that flag and disallows the accessing of the __class__ cell. In this case the error message is bad because it implies that the __class__ cell is the wrong type. Disabling the flag when creating the code objects allows the above code to work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32176>
_______________________________________


More information about the Python-bugs-list mailing list