Ronald Oussoren <ronaldousso...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34522>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to