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 christian.heimes
Recipients christian.heimes, erlendaasland, pablogsal, serhiy.storchaka, shreyanavigyan, vstinner
Date 2021-04-26.13:47:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I have had this workaround in _hashopenssl.c for a while. Can I get rid of the function with "{Py_tp_new, NULL}" or is there a more generic way to accomplish the same goal?

/* {Py_tp_new, NULL} doesn't block __new__ */
static PyObject *
_disabled_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
        "cannot create '%.100s' instances", _PyType_Name(type));
    return NULL;
Date User Action Args
2021-04-26 13:47:31christian.heimessetrecipients: + christian.heimes, vstinner, serhiy.storchaka, pablogsal, erlendaasland, shreyanavigyan
2021-04-26 13:47:31christian.heimessetmessageid: <>
2021-04-26 13:47:31christian.heimeslinkissue43916 messages
2021-04-26 13:47:31christian.heimescreate