There was an error while loading. Please reload this page.
1 parent 513c89d commit 3107b45Copy full SHA for 3107b45
1 file changed
Objects/funcobject.c
@@ -131,7 +131,7 @@ _PyFunction_FromConstructor(PyFrameConstructor *constr)
131
op->func_annotations = NULL;
132
op->func_typeparams = NULL;
133
op->vectorcall = _PyFunction_Vectorcall;
134
- _PyFunction_SetVersion(op, 0);
+ op->func_version = 0;
135
_PyObject_GC_TRACK(op);
136
handle_func_event(PyFunction_EVENT_CREATE, op, NULL);
137
return op;
@@ -207,7 +207,7 @@ PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname
207
208
209
210
211
212
213
return (PyObject *)op;
0 commit comments