-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
For CALL_INTRINSIC_*
opcodes, dis
currently just shows the number, which makes it hard to figure out what the code actually does:
2 LOAD_CONST 0 ('T')
4 CALL_INTRINSIC_1 7
It would be nice if this instead said
2 LOAD_CONST 0 ('T')
4 CALL_INTRINSIC_1 7 (INTRINSIC_TYPEVAR)
Possible implementation strategy:
- instrinsic names are defined in opcode.py
pycore_intrinsics.h
is generated from opcode.py (bonus: we no longer have to manually update MAX_INTRINSIC_1)dis
learns to read the intrinsic names from opcode.py
Linked PRs
sunmy2019
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement