[issue22079] Ensure in PyType_Ready() that base class of static type is static

Stefan Behnel report at bugs.python.org
Tue Apr 20 11:55:17 EDT 2021


Stefan Behnel <stefan_ml at behnel.de> added the comment:

Coming back to this after a while. I would like to get rid of the work-around (read: huge hack) that we have in Cython for this check and thus would ask for the check to be removed in Py3.10.

According to the discussion, no-one seemed to remember why it was added in the first place, just that "bad things happened", but not what or how.

With the fix for issue 35810 in place since Py3.8, my guess is that the situation that this check is preventing has actually become safe now. Unless someone can motivate that the risks were other than a premature deallocation of the base type.

----------

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


More information about the Python-bugs-list mailing list