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 eric.snow
Recipients eric.snow, h.venev
Date 2018-06-13.16:22:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528906969.25.0.947875510639.issue23869@psf.upfronthosting.co.za>
In-reply-to
Content
As to the docs, the entry for tp_alloc in Doc/c-api/typeobj.rst does not mention initialization.  The tp_new entry does say that it should call tp_alloc and then do the minimum initialization possible.  That implies (weakly) that tp_alloc should do the minimum initialization possible.  Could you point me to the place where the docs talk about tp_alloc and initialization?  That would be useful to see.

Regardless, having the tp_alloc entry explicitly say it shouldn't do any initialization does make sense.  Feel free to open a separate issue on that.
History
Date User Action Args
2018-06-13 16:22:49eric.snowsetrecipients: + eric.snow, h.venev
2018-06-13 16:22:49eric.snowsetmessageid: <1528906969.25.0.947875510639.issue23869@psf.upfronthosting.co.za>
2018-06-13 16:22:49eric.snowlinkissue23869 messages
2018-06-13 16:22:49eric.snowcreate