Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Differentiate between intrinsic invalid args
  • Loading branch information
jkchandalia committed May 2, 2023
commit abd3ff1094c6b3429712b45e8570d09f32167fcb
4 changes: 2 additions & 2 deletions Include/internal/pycore_intrinsics.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Auto-generated by Tools/build/generate_opcode_h.py from Lib/opcode.py

/* Unary Functions: */
#define INTRINSIC_INVALID 0
#define INTRINSIC_1_INVALID 0
#define INTRINSIC_PRINT 1
#define INTRINSIC_IMPORT_STAR 2
#define INTRINSIC_STOPITERATION_ERROR 3
Expand All @@ -13,7 +13,7 @@


/* Binary Functions: */
#define INTRINSIC_INVALID 0
#define INTRINSIC_2_INVALID 0
#define INTRINSIC_PREP_RERAISE_STAR 1

#define MAX_INTRINSIC_2 1
Expand Down
4 changes: 2 additions & 2 deletions Lib/opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def pseudo_op(name, op, real_ops):
]

_intrinsic_1_descs = [
"INTRINSIC_INVALID",
"INTRINSIC_1_INVALID",
"INTRINSIC_PRINT",
"INTRINSIC_IMPORT_STAR",
"INTRINSIC_STOPITERATION_ERROR",
Expand All @@ -317,7 +317,7 @@ def pseudo_op(name, op, real_ops):
]

_intrinsic_2_descs = [
'INTRINSIC_INVALID',
'INTRINSIC_2_INVALID',
'INTRINSIC_PREP_RERAISE_STAR',
]

Expand Down