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 tpievila
Recipients docs@python, tpievila
Date 2015-03-19.14:41:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426776099.01.0.644113037586.issue23710@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3/c-api/structures.html#c.PyObject_HEAD says that the macro should be used for creating new types and that it has ob_type. Unfortunately at some point (@61466 perhaps) that definition in object.h was changed. This affects other pages too (at least https://docs.python.org/3/extending/newtypes.html).

I encountered this while checking if a C extension (imposm.parser) could be trivially ported for Python 3. Unfortunately not. I suppose

  self->ob_type

should be replaced with

  Py_TYPE(self)

but that isn't really clear from the docs.
History
Date User Action Args
2015-03-19 14:41:39tpievilasetrecipients: + tpievila, docs@python
2015-03-19 14:41:39tpievilasetmessageid: <1426776099.01.0.644113037586.issue23710@psf.upfronthosting.co.za>
2015-03-19 14:41:38tpievilalinkissue23710 messages
2015-03-19 14:41:38tpievilacreate