New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-89526: Use instruction offsets in co_lnotab #28722
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the new co_endlinetable
get changed as well?
@@ -372,7 +374,7 @@ def _write_atomic(path, data, mode=0o666): | |||
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array | |||
# in PC/launcher.c must also be updated. | |||
|
|||
MAGIC_NUMBER = (3460).to_bytes(2, 'little') + b'\r\n' | |||
MAGIC_NUMBER = (3461).to_bytes(2, 'little') + b'\r\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've already claimed this, you'll need to use 3462.
@@ -0,0 +1,2 @@ | |||
The ``co_lnotab`` attribute of the code objects encodes now instruction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
co_lnotab
is computed and deprectated. The table with the data is co_linetable
now.
This PR is stale because it has been open for 30 days with no activity. |
https://bugs.python.org/issue45363