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 vstinner
Recipients bfroehle, loewis, vstinner
Date 2014-01-28.08:39:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390898357.21.0.791438460269.issue17162@psf.upfronthosting.co.za>
In-reply-to
Content
+    return  *(void**)(((char*)type) + slotoffsets[slot]);

New Python versions may add new slots. What do you think of returning NULL if the slot number is higher than the maximum slot?

It looks like "#define Py_tp_free 74" is the highest slot number since Python 3.2.

For example, Python 3.4 has a new "tp_finalize" slot, but I don't see it in typeslots.h.
History
Date User Action Args
2014-01-28 08:39:17vstinnersetrecipients: + vstinner, loewis, bfroehle
2014-01-28 08:39:17vstinnersetmessageid: <1390898357.21.0.791438460269.issue17162@psf.upfronthosting.co.za>
2014-01-28 08:39:17vstinnerlinkissue17162 messages
2014-01-28 08:39:17vstinnercreate