-
-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
Description
Bytecode changes can be found by viewing magic number change history
- Make 'annotations' future by default bpo-38605
Undo making 'annotations' future by default bpo-38605 - New line number table format -- PEP 626 bpo-42246: Bump magic number. python/cpython#23245
- We rely on
dis.findlinestarts
to determine lineno, which is already usingcode.co_lines
internally (see https://bugs.python.org/issue44875). So we're good.
- We rely on
- Function annotation for MAKE_FUNCTION is changed from dict to tuple bpo-42202
- This should not affect Cb. It only changes how annotation is stored (from map to tuple), which are are all consts.
- ❓ RERAISE restores f_lasti if oparg != 0 bpo-42246
- Not sure if this affects anything, for now assume no. Will come to it if we hit any issues.
- PEP 634: Structural Pattern Matching bpo-42128
- Use instruction offsets (as opposed to byte offsets)
- Add GEN_START bytecode bpo-43683
- Safer line number table handling bpo-42739
Other bytecode related changes: