[issue43916] Check that new heap types cannot be created uninitialised

Erlend Egeberg Aasland report at bugs.python.org
Tue Apr 27 04:58:32 EDT 2021


Erlend Egeberg Aasland <erlend.aasland at innova.no> added the comment:

For that to work, you'd have to add a flag in PyType_FromModuleAndSpec, set the flag if (slot->slot == Py_tp_new && slot->pfunc == NULL) in the slots for loop, and then reset tp_new _after_ PyType_Ready.

----------

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


More information about the Python-bugs-list mailing list