Skip to content

Support Python 3.10 #126

@laike9m

Description

@laike9m

Python 3.10 changelog

Bytecode changes can be found by viewing magic number change history
image

  • 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
  • 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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions