Message365863
| Author |
vstinner |
| Recipients |
Michael.Felt, corona10, petdance, shihai1991, vstinner |
| Date |
2020年04月06日.15:25:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1586186755.78.0.0977013607679.issue40170@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> It should use PyType_GetSlot()
Oh. It seems like currently, PyType_GetSlot() can only be used on a heap allocated types :-( The function starts with:
if (!PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE) || slot < 0) {
PyErr_BadInternalCall();
return NULL;
} |
|