-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-95913: Edit, expand & format Bytecode sect in 3.11 WhatsNew #98559
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
48a18d5
Fix Sphinx syntax in bytecode section and tweak phrasing
CAM-Gerlach 4a3d830
Use clear, consistant phrasing on all Bytecode entries
CAM-Gerlach 611a628
Re-order opcode changes to Added, Replaced, Removed, Changed
CAM-Gerlach 68bef2a
Add missing added and removed opcodes to section
CAM-Gerlach f34698c
Add table with all added/replace/removed opcodes
CAM-Gerlach 650b4e4
Merge opcode information from list into tables
CAM-Gerlach 87e06bb
Add exception reprisentation change to Changed Opcodes
CAM-Gerlach 9c165b8
Unify & simplify added and replaced tables & entries
CAM-Gerlach 1e0d7cb
Move added opcodes out of table into a bulleted list instead
CAM-Gerlach a0b90d8
Re-order Replaced Opcodes table by replaced opcode
CAM-Gerlach 4ed6cfb
Consolidate changed and removed sections to be more concise
CAM-Gerlach 7c94ab0
Consolidate jump opcode changes further
CAM-Gerlach c1a7743
CHECK_EG_MATCH is new
iritkatriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
The list we have now has all the jump related changes together, but if you split it into a "added" table and a "replaced" table then they are no longer together. I don't know if that's an improvement.
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 created an alternative PR -#98566. It tries to consolidate related items into a high level descriptions, rather than enumerate all the changes. Maybe this is more useful for whatsnew. The full details, if you need them, as in the dis doc.
I added an item about the exc-info related changes. Didn't do anything about these:
GET_AWAITABLE
WITH_EXCEPT_START
If the low bit of namei is set, then a NULL is pushed to the stack before the global variable.
LOAD_GLOBAL
i is no longer offset by the length of co_varnames
LOAD_CLOSURE
LOAD_DEREF
LOAD_CLASSDEREF
STORE_DEREF
DELETE_DEREF
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.
Great points, thanks. I've incorporated the changes suggested via your PR, specifically:
NO_INTERRUPT
opcode addition, which didn't appear to be closely related to the others) into a single Replaced table entry with a linked noteEXC
/EG
changes were already consolidated)Beyond that, I've given this PR a major revamp based on your feedback above:
In total, this retains nearly the same space consumption of the previous dense wall of flat bullets format (once allowing for the missing substantive additions, replacements and removals added here), while being much easier for the reader to quickly navigate, find what they're looking for and jump to more information in the
dis
docs.