[issue34522] PyTypeObject's tp_base initialization bug
Ronald Oussoren
report at bugs.python.org
Tue Aug 28 15:29:45 EDT 2018
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
I don't agree with "This means that a PyTypeObject's ob_type should always be set by PyType_Ready.", and therefore don't agree with the change to PyVarObject_HEAD_INIT.
In particular this is not correct when the type has a custom metatype (e.g. ob_type != &PyType_Type).
BTW. I don't understand why changing the invocation of PyVarObject_HEAD_INIT is needed at all. Adding calls to PyType_Ready can be don without that change (and I agree with explicitly initialising all types).
----------
nosy: +ronaldoussoren
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34522>
_______________________________________
More information about the Python-bugs-list
mailing list