diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-07-20 16:46:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 16:46:04 (GMT) |
commit | 9c81fc2dbee3ac8a2f30ad24b0876d80628a94ac (patch) | |
tree | 74642722ed13a213cfe9b33701b72fb621c2886d /Lib/opcode.py | |
parent | 214a25dd81dfe5ee0ab843cf665da2a7473a08db (diff) | |
download | cpython-9c81fc2dbee3ac8a2f30ad24b0876d80628a94ac.zip cpython-9c81fc2dbee3ac8a2f30ad24b0876d80628a94ac.tar.gz cpython-9c81fc2dbee3ac8a2f30ad24b0876d80628a94ac.tar.bz2 |
gh-105481: do not auto-generate pycore_intrinsics.h (#106913)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 08dfd26..36831d8 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -257,6 +257,9 @@ if sys.version_info[:2] >= (3, 13): __all__.extend(["hasarg", "hasconst", "hasname", "hasjump", "hasjrel", "hasjabs", "hasfree", "haslocal", "hasexc"]) + _intrinsic_1_descs = _opcode.get_intrinsic1_descs() + _intrinsic_2_descs = _opcode.get_intrinsic2_descs() + hascompare = [opmap["COMPARE_OP"]] _nb_ops = [ @@ -288,29 +291,6 @@ _nb_ops = [ ("NB_INPLACE_XOR", "^="), ] -_intrinsic_1_descs = [ - "INTRINSIC_1_INVALID", - "INTRINSIC_PRINT", - "INTRINSIC_IMPORT_STAR", - "INTRINSIC_STOPITERATION_ERROR", - "INTRINSIC_ASYNC_GEN_WRAP", - "INTRINSIC_UNARY_POSITIVE", - "INTRINSIC_LIST_TO_TUPLE", - "INTRINSIC_TYPEVAR", - "INTRINSIC_PARAMSPEC", - "INTRINSIC_TYPEVARTUPLE", - "INTRINSIC_SUBSCRIPT_GENERIC", - "INTRINSIC_TYPEALIAS", -] - -_intrinsic_2_descs = [ - "INTRINSIC_2_INVALID", - "INTRINSIC_PREP_RERAISE_STAR", - "INTRINSIC_TYPEVAR_WITH_BOUND", - "INTRINSIC_TYPEVAR_WITH_CONSTRAINTS", - "INTRINSIC_SET_FUNCTION_TYPE_PARAMS", -] - _cache_format = { "LOAD_GLOBAL": { |