消息 [391934]
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;
} |
|
| 日期 |
用户 |
动作 |
参数 |
| 2021-04-26 13:47:31 | christian.heimes | 修改 | recipients:
+ christian.heimes, vstinner, serhiy.storchaka, pablogsal, erlendaasland, shreyanavigyan |
| 2021-04-26 13:47:31 | christian.heimes | 修改 | messageid: <1619444851.95.0.165758327108.issue43916@roundup.psfhosted.org> |
| 2021-04-26 13:47:31 | christian.heimes | 链接 | issue43916 messages |
| 2021-04-26 13:47:31 | christian.heimes | 创建 | |
|