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

Dan Snider report at bugs.python.org
Thu Nov 30 18:55:37 EST 2017


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

The hacked cell object using this method appears to be changed to NULL when accessed by frame.f_localsplus. I don't know C well enough to find out what's happening because nothing looks different to me in PyFrame_FastToLocalsWithError.


Also creating a closure with:
from ctypes import pythonapi, py_object

new_cell = pythonapi.PyCell_New
new_cell.argtypes = (py_object, )
new_cell.restype = py_object

doesn't solve this either.

----------

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


More information about the Python-bugs-list mailing list