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 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;
    }
History
Date User Action Args
2020-04-06 15:25:55vstinnersetrecipients: + vstinner, Michael.Felt, corona10, shihai1991, petdance
2020-04-06 15:25:55vstinnersetmessageid: <1586186755.78.0.0977013607679.issue40170@roundup.psfhosted.org>
2020-04-06 15:25:55vstinnerlinkissue40170 messages
2020-04-06 15:25:55vstinnercreate