Skip to content

Make type inference compatible with Python 3.6 #18612

@kennknowles

Description

@kennknowles

Starting in Python 3.6, instructions always use two bytes. As the Python SDKs implementation of trivial type inference relies on these disassembled instructions, typehints/trivial_inference.py should be updated to be compatible with this change. This can be done by comparing https://github.com/python/cpython/blob/3.6/Lib/dis.py to https://github.com/python/cpython/blob/3.5/Lib/dis.py

Imported from Jira BEAM-3380. Original Jira may contain additional context.
Reported by: luke-zhu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3coredone & doneIssue has been reviewed after it was closed for verification, followups, etc.pythontask

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions