Message 209514 - Python tracker
+ 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.