Skip to content

Commit bea99f9

Browse files
committed
Fix description added.
1 parent 4429178 commit bea99f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/instrumentation.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,9 @@ PyObject *_Py_CreateMonitoringObject(void)
25582558
err = PyObject_SetAttrString(events, "NO_EVENTS", _PyLong_GetZero());
25592559
if (err) goto error;
25602560
PyObject *val = PyLong_FromLong(PY_MONITORING_DEBUGGER_ID);
2561-
assert(val != NULL);
2561+
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. */
25622564
err = PyObject_SetAttrString(mod, "DEBUGGER_ID", val);
25632565
Py_DECREF(val);
25642566
if (err) goto error;

0 commit comments

Comments
 (0)