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