summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-03-19 17:00:54 (GMT)
committerGitHub <noreply@github.com>2024-03-19 17:00:54 (GMT)
commit688623d402097a2559fb135ce30384c884d9c78f (patch)
tree0c4d67c8601f8523f82e84932fd7e3a43d305619 /Python
parent5da6e3082cfd0a08815709654584d3ccfc66e2ad (diff)
downloadcpython-688623d402097a2559fb135ce30384c884d9c78f.zip
cpython-688623d402097a2559fb135ce30384c884d9c78f.tar.gz
cpython-688623d402097a2559fb135ce30384c884d9c78f.tar.bz2
[3.12] gh-116735: Use `MISSING` for `CALL` event if argument is absen… (#116873)
[3.12] gh-116735: Use `MISSING` for `CALL` event if argument is absent (GH-116737)
Diffstat (limited to 'Python')
-rw-r--r--Python/bytecodes.c2
-rw-r--r--Python/generated_cases.c.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index ed8f671..1c25486 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -3209,7 +3209,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, next_instr-1, func, arg);
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index bb75e9a..d5e3ce2 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -4435,7 +4435,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, next_instr-1, func, arg);