Message209514
| 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: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 |
|