Skip to content

Setting the line number is ignored in INSTRUMENTED_YIELD_VALUE #121131

Description

@markshannon

Bug report

Bug description:

There is a test for this: test_jump_from_yield in test_sys_settrace, but it expects the wrong value and the jump is ignored.

This is a fairly fringe behavior so I'm not sure if this is worth backporting.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions