Message391934
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)
{
PyErr_Format(PyExc_TypeError,
"cannot create '%.100s' instances", _PyType_Name(type));
return NULL;
} |
|
Date |
User |
Action |
Args |
2021-04-26 13:47:31 | christian.heimes | set | recipients:
+ christian.heimes, vstinner, serhiy.storchaka, pablogsal, erlendaasland, shreyanavigyan |
2021-04-26 13:47:31 | christian.heimes | set | messageid: <1619444851.95.0.165758327108.issue43916@roundup.psfhosted.org> |
2021-04-26 13:47:31 | christian.heimes | link | issue43916 messages |
2021-04-26 13:47:31 | christian.heimes | create | |
|