Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Dec 16, 2020

PEP 626 requires that f_lineno always contains the last line executed.
This PR makes sure that is true, even after an exception is raised.

This is, hopefully, the last step in the rather-more-work-than-I-expected implementation of PEP 626.

https://bugs.python.org/issue42246

@markshannon markshannon merged commit bf353f3 into python:master Dec 17, 2020
@markshannon markshannon deleted the pep-626-after-raise branch December 17, 2020 13:57
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…ectly after raising or reraising an exception (pythonGH-23803)

* Ensure that f_lasti is set correctly after an exception is raised to conform to PEP 626.

* Update importlib

* Add NEWS.
Sign up for free to 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.

3 participants