Skip to content

Commit 5c277a0

Browse files
authored
Merge pull request #174 from jdw170000/python-3.14
Python 3.14 Opcodes and Marshal 5 Support
2 parents 4b2028d + 71e73d0 commit 5c277a0

File tree

4 files changed

+315
-404
lines changed

4 files changed

+315
-404
lines changed

xdis/bytecode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ def get_logical_instruction_at_offset(
363363
elif op in opc.LOCAL_OPS:
364364
if opc.version_tuple >= (3, 13) and opname in (
365365
"LOAD_FAST_LOAD_FAST",
366+
"LOAD_FAST_BORROW_LOAD_FAST_BORROW",
366367
"STORE_FAST_LOAD_FAST",
367368
"STORE_FAST_STORE_FAST",
368369
):

xdis/magics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,10 @@ def __by_version(magic_versions: Dict[bytes, str]) -> dict:
611611
# Fix handling of opcodes that may leave operands on the stack when optimizing LOAD_FAST
612612
add_magic_from_int(3625, "3.14b3")
613613

614+
# Fix missing exception handlers in logical expression
615+
add_magic_from_int(3626, "3.14rc2")
616+
617+
# Fix miscompilation of some module-level annotations
614618
add_magic_from_int(3627, "3.14rc3")
615619

616620
# add_magic_from_int(3655, "3.15.0a0")

0 commit comments

Comments
 (0)