Skip to content

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

@markshannon

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)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions