Bug report
Here:
|
static PyObject * |
|
MethodDescriptor2_new(PyTypeObject* type, PyObject* args, PyObject *kw) |
|
{ |
|
MethodDescriptor2Object *op = PyObject_New(MethodDescriptor2Object, type); |
|
op->base.vectorcall = NULL; |
|
op->vectorcall = MethodDescriptor_vectorcall; |
|
return (PyObject *)op; |
|
} |
I know that memory errors are very unluckily, but still: why not having a correct code?
Linked PRs
Bug report
Here:
cpython/Modules/_testcapi/vectorcall.c
Lines 347 to 354 in 8303d32
I know that memory errors are very unluckily, but still: why not having a correct code?
Linked PRs
NULLinMethodDescriptor2_newin_testcapi#121792NULLinMethodDescriptor2_newin_testcapi(GH-121792) #121839NULLinMethodDescriptor2_newin_testcapi(GH-121792) #121840