diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-03-15 14:46:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 14:46:18 (GMT) |
commit | 59e30f41ed6f2388a99ac0a8aebf0a12f7460a4a (patch) | |
tree | 8e9eb36f26ed71554179379ee8370a0d32455a83 /Python | |
parent | d180b507c4929be399395bfd7946948f98ffc4f7 (diff) | |
download | cpython-59e30f41ed6f2388a99ac0a8aebf0a12f7460a4a.zip cpython-59e30f41ed6f2388a99ac0a8aebf0a12f7460a4a.tar.gz cpython-59e30f41ed6f2388a99ac0a8aebf0a12f7460a4a.tar.bz2 |
gh-116735: Use `MISSING` for `CALL` event if argument is absent (GH-116737)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bytecodes.c | 2 | ||||
-rw-r--r-- | Python/generated_cases.c.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index bf7782a..fb66ae5 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -3774,7 +3774,7 @@ dummy_func( EVAL_CALL_STAT_INC_IF_FUNCTION(EVAL_CALL_FUNCTION_EX, func); if (opcode == INSTRUMENTED_CALL_FUNCTION_EX) { PyObject *arg = PyTuple_GET_SIZE(callargs) > 0 ? - PyTuple_GET_ITEM(callargs, 0) : Py_None; + PyTuple_GET_ITEM(callargs, 0) : &_PyInstrumentation_MISSING; int err = _Py_call_instrumentation_2args( tstate, PY_MONITORING_EVENT_CALL, frame, this_instr, func, arg); diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 2fbd9ed..82d7b76 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -1227,7 +1227,7 @@ EVAL_CALL_STAT_INC_IF_FUNCTION(EVAL_CALL_FUNCTION_EX, func); if (opcode == INSTRUMENTED_CALL_FUNCTION_EX) { PyObject *arg = PyTuple_GET_SIZE(callargs) > 0 ? - PyTuple_GET_ITEM(callargs, 0) : Py_None; + PyTuple_GET_ITEM(callargs, 0) : &_PyInstrumentation_MISSING; int err = _Py_call_instrumentation_2args( tstate, PY_MONITORING_EVENT_CALL, frame, this_instr, func, arg); |