We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4429178 commit bea99f9Copy full SHA for bea99f9
Python/instrumentation.c
@@ -2558,7 +2558,9 @@ PyObject *_Py_CreateMonitoringObject(void)
2558
err = PyObject_SetAttrString(events, "NO_EVENTS", _PyLong_GetZero());
2559
if (err) goto error;
2560
PyObject *val = PyLong_FromLong(PY_MONITORING_DEBUGGER_ID);
2561
- assert(val != NULL);
+ assert(val != NULL); /* Regression test for PyLong_FromLong which can return
2562
+ NULL in the general case. But now it can't return
2563
+ NULL for arguments of small int type. */
2564
err = PyObject_SetAttrString(mod, "DEBUGGER_ID", val);
2565
Py_DECREF(val);
2566
0 commit comments