Visitar URL original
Should setting the line number be allowed for `PY_RESUME` events? · Issue #113102 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260624071533/https://github.com/python/cpython/issues/113102
Skip to content
/ cpython Public

Should setting the line number be allowed for PY_RESUME events? #113102

Description

@markshannon

Currently, setting the line number of a frame in a PY_RESUME event is allowed, but was accidentally broken in d27acd4

However, setting a line number is not allowed for PY_START events.
Historically both these events were treated as CALL events by sys.settrace, and setting the line number was not allowed.

I think, that for consistency, setting the line number of a frame in a PY_RESUME event should not be allowed.

@gaogaotiantian thoughts?

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    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