8000 `INSTRUMENTED_FUNCTION_CALL_EX` should set `arg0` to `MISSING` instead of `None` if argument is absent · Issue #116735 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
INSTRUMENTED_FUNCTION_CALL_EX should set arg0 to MISSING instead of None if argument is absent #116735
Closed
@gaogaotiantian

Description

@gaogaotiantian

Bug report

Bug description:

I should've caught this in #116626 but somehow I missed it. INSTRUMENTED_FUNCTION_CALL_EX sets arg0 to None now, instead of MISSING, when there's no argument.

def f(a=1, b=2):
    return a + b
empty_args = []
f(*empty_args)  # arg0 will be None

CPython versions tested on:

3.12, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0