Skip to content

Commit 1e9ebd3

Browse files
Merge pull request #131 from juliangilbey/fix-intrinsic-spelling
Fix spelling of INTRINSIC
2 parents e14a0a2 + 60bf77c commit 1e9ebd3

4 files changed

Lines changed: 20 additions & 12 deletions

File tree

doc/api.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ Intrinsic operations
351351

352352
.. class:: Intrinsic1Op
353353

354-
Enum for the argument of the ``CALL_INSTRINSIC_1`` instruction (3.12+).
354+
Enum for the argument of the ``CALL_INTRINSIC_1`` instruction (3.12+).
355355

356-
``INSTRINSIC_1_INVALID``
357-
``INSTRINSIC_PRINT``
358-
``INSTRINSIC_IMPORT_STAR``
356+
``INTRINSIC_1_INVALID``
357+
``INTRINSIC_PRINT``
358+
``INTRINSIC_IMPORT_STAR``
359359
``INTRINSIC_STOPITERATION_ERROR``
360360
``INTRINSIC_ASYNC_GEN_WRAP``
361361
``INTRINSIC_UNARY_POSITIVE``
@@ -368,9 +368,9 @@ Intrinsic operations
368368

369369
.. class:: Intrinsic2Op
370370

371-
Enum for the argument of the ``CALL_INSTRINSIC_2`` instruction (3.12+).
371+
Enum for the argument of the ``CALL_INTRINSIC_2`` instruction (3.12+).
372372

373-
``INSTRINSIC_2_INVALID``
373+
``INTRINSIC_2_INVALID``
374374
``INTRINSIC_PREP_RERAISE_STAR``
375375
``INTRINSIC_TYPEVAR_WITH_BOUND``
376376
``INTRINSIC_TYPEVAR_WITH_CONSTRAINTS``

doc/changelog.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
ChangeLog
22
=========
33

4+
2023-10-13: Version 0.15.1
5+
--------------------------
6+
7+
Bugfixes:
8+
9+
- Correct spelling of "INTRINSIC" in several places; this affected
10+
some ops in Python 3.12. PR #131
11+
412
2023-09-01: Version 0.15.0
513
--------------------------
614

@@ -17,7 +25,7 @@ New features:
1725
a ``tuple[bool, bool, str]`` as argument
1826
- ``POP_JUMP_IF_*`` instructions are undirected in Python 3.12
1927
- ``YIELD_VALUE`` now takes an argument
20-
- Support for ``CALL_INSTRINSIC_1/2`` led to the addition of 2 new enums to
28+
- Support for ``CALL_INTRINSIC_1/2`` led to the addition of 2 new enums to
2129
represent the argument
2230

2331
2023-05-24: Version 0.14.2

src/bytecode/instr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ class BinaryOp(enum.IntEnum):
104104

105105
@enum.unique
106106
class Intrinsic1Op(enum.IntEnum):
107-
INSTRINSIC_1_INVALID = 0
108-
INSTRINSIC_PRINT = 1
109-
INSTRINSIC_IMPORT_STAR = 2
107+
INTRINSIC_1_INVALID = 0
108+
INTRINSIC_PRINT = 1
109+
INTRINSIC_IMPORT_STAR = 2
110110
INTRINSIC_STOPITERATION_ERROR = 3
111111
INTRINSIC_ASYNC_GEN_WRAP = 4
112112
INTRINSIC_UNARY_POSITIVE = 5
@@ -120,7 +120,7 @@ class Intrinsic1Op(enum.IntEnum):
120120

121121
@enum.unique
122122
class Intrinsic2Op(enum.IntEnum):
123-
INSTRINSIC_2_INVALID = 0
123+
INTRINSIC_2_INVALID = 0
124124
INTRINSIC_PREP_RERAISE_STAR = 1
125125
INTRINSIC_TYPEVAR_WITH_BOUND = 2
126126
INTRINSIC_TYPEVAR_WITH_CONSTRAINTS = 3

tests/test_instr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def test_invalid_arg(self):
208208

209209
for name in [opcode.opname[i] for i in INTRINSIC_1OP]:
210210
self.assertRaises(TypeError, Instr, name, 1)
211-
Instr(name, Intrinsic1Op.INSTRINSIC_PRINT)
211+
Instr(name, Intrinsic1Op.INTRINSIC_PRINT)
212212

213213
for name in [opcode.opname[i] for i in INTRINSIC_2OP]:
214214
self.assertRaises(TypeError, Instr, name, 1)

0 commit comments

Comments
 (0)