Uh oh!
There was an error while loading. Please reload this page.
bpo-42246: Partial implementation of PEP 626. - #23113
Merged
Merged
Conversation
markshannon
commented
Nov 2, 2020
MemberAuthor
NOTE: |
markshannon
commented
Nov 10, 2020
MemberAuthor
I'd like to get this merged so I can finish implementing PEP 626. |
bedevere-bot
commented
Nov 12, 2020
|
thmo added a commit
to thmo/jinja
that referenced
this pull request
Jan 19, 2021
As part of python/cpython#23113 partly implementing PEP 626 (see https://bugs.python.org/issue42246), the co_lnotab member of struct PyCodeObject was replaced by co_linetable, implementing a new line number table. This commit therefore adds linetable to the list of attributes that are copied over into the final CodeType executed by fake_traceback() to ensure proper line numbers and contents in fake stack traces generated when running under Python 3.10. Fixespallets#1333.
adorilson pushed a commit
to adorilson/cpython
that referenced
this pull request
Mar 13, 2021
* Implement new line number table format, as defined in PEP 626.
| addr = 0 | ||
| for addr_incr, line_incr in zip(co_lnotab[::2], co_lnotab[1::2]): | ||
| for addr_incr, line_incr in zip(co_linetable[::2], co_linetable[1::2]): | ||
| if addr_incr == 255: |
Contributor
There was a problem hiding this comment.
I think this should be if ord(addr_incr) == 255
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the bulk of PEP 626.
https://bugs.python.org/issue42246