8000 Setting the line number is ignored in `INSTRUMENTED_YIELD_VALUE` · Issue #121131 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Setting the line number is ignored in INSTRUMENTED_YIELD_VALUE #121131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markshannon opened this issue Jun 28, 2024 · 0 comments
Closed

Setting the line number is ignored in INSTRUMENTED_YIELD_VALUE #121131

markshannon opened this issue Jun 28, 2024 · 0 comments
Labels
3.14 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@markshannon
Copy link
Member
markshannon commented Jun 28, 2024

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

@markshannon markshannon added type-bug An unexpected behavior, bug, or error interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.14 bugs and security fixes labels Jun 28, 2024
markshannon added a commit that referenced this issue Jul 26, 2024
* Add support for 'prev_instr' to code generator and refactor some INSTRUMENTED instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant
0