summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-01-19 18:14:55 (GMT)
committerGitHub <noreply@github.com>2023-01-19 18:14:55 (GMT)
commite9ccfe4a636d5fe33f65cea2605c3621ffa55f19 (patch)
tree56949db98d45d3f744f893e6f8d4909041a679fc /Lib/opcode.py
parenta1e051a23736fdf3da812363bcaf32e53a294f03 (diff)
downloadcpython-e9ccfe4a636d5fe33f65cea2605c3621ffa55f19.zip
cpython-e9ccfe4a636d5fe33f65cea2605c3621ffa55f19.tar.gz
cpython-e9ccfe4a636d5fe33f65cea2605c3621ffa55f19.tar.bz2
gh-100712: make it possible to disable specialization (for debugging) (#100713)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index 46051b2..c317e23 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -33,6 +33,9 @@ hascompare = []
hasfree = []
hasexc = []
+
+ENABLE_SPECIALIZATION = True
+
def is_pseudo(op):
return op >= MIN_PSEUDO_OPCODE and op <= MAX_PSEUDO_OPCODE