This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients loewis, martin.panter, ned.deily, rhettinger, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-04-22.09:52:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461318728.77.0.406522675202.issue26824@psf.upfronthosting.co.za>
In-reply-to
Content
Seems you misunderstood PEP3123. The bugs described in the PEP are gone and can't be reappear. The new PyObject_HEAD fixes the problem, it makes casting to PyObject* be defined behaviour. The accessor macros are needed only to write the code compatible with 3.x and 2.x. Without Py_TYPE() you would need to use `foo->ob_base->ob_type` or `foo->ob_type` in 3.x depending on the type of foo, and always use `foo->ob_type` in 2.x.
History
Date User Action Args
2016-04-22 09:52:08serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, rhettinger, vstinner, ned.deily, martin.panter, xiang.zhang
2016-04-22 09:52:08serhiy.storchakasetmessageid: <1461318728.77.0.406522675202.issue26824@psf.upfronthosting.co.za>
2016-04-22 09:52:08serhiy.storchakalinkissue26824 messages
2016-04-22 09:52:08serhiy.storchakacreate