[issue31588] SystemError in class creation in case of a metaclass with a bad __prepare__() method

Oren Milman report at bugs.python.org
Wed Sep 27 06:13:21 EDT 2017


Oren Milman <orenmn at gmail.com> added the comment:

Nick, maybe you tried to reproduce in release?
In debug (where I got the SystemError), you have in the beginning of _PyFrame_New_NoTrack():
#ifdef Py_DEBUG
    if (code == NULL || globals == NULL || !PyDict_Check(globals) ||
        (locals != NULL && !PyMapping_Check(locals))) {
        PyErr_BadInternalCall();
        return NULL;
    }

----------

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


More information about the Python-bugs-list mailing list