Skip to content

bpo-43933: Show frame.f_lineno as None, rather than -1, if there is no line number. - #25717

Merged
markshannon merged 3 commits into
python:masterfrom
markshannon:present-none-if-missing-lineno
Apr 29, 2021
Merged

bpo-43933: Show frame.f_lineno as None, rather than -1, if there is no line number.#25717
markshannon merged 3 commits into
python:masterfrom
markshannon:present-none-if-missing-lineno

Conversation

@markshannon

@markshannonmarkshannon commented Apr 29, 2021

Copy link
Copy Markdown
Member

As specified by PEP 626.
This should not be observable unless frame.f_trace_opcodes is set, or some other oddity.

https://bugs.python.org/issue43933

@markshannon
markshannonforce-pushed the present-none-if-missing-lineno branch from 046b8ae to 9bd0186CompareApril 29, 2021 13:07
@encukou

Copy link
Copy Markdown
Member

The "Check if generated files are up to date" test is failing because of unfortunate timing when merging other PRs (GH-25315, GH-25687).
It's OK to ignore it. Sorry for the inconvenience.

@markshannon
markshannon merged commit 088a15c into python:masterApr 29, 2021
@markshannon
markshannon deleted the present-none-if-missing-lineno branch May 4, 2021 09:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@markshannon@encukou@the-knights-who-say-ni@bedevere-bot