Message209514
+ 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. |
|
Date |
User |
Action |
Args |
2014-01-28 08:39:17 | vstinner | set | recipients:
+ vstinner, loewis, bfroehle |
2014-01-28 08:39:17 | vstinner | set | messageid: <1390898357.21.0.791438460269.issue17162@psf.upfronthosting.co.za> |
2014-01-28 08:39:17 | vstinner | link | issue17162 messages |
2014-01-28 08:39:17 | vstinner | create | |
|