Dan Snider <mr.assume.a...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32176>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to