summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-11-07 14:49:51 (GMT)
committerGitHub <noreply@github.com>2022-11-07 14:49:51 (GMT)
commit4a1c58d504a49eeb9be7beef3ca861a9d6b28ede (patch)
tree8c5245a6a3a19a311d0d5a31723da1225a2c6795 /Lib/opcode.py
parent80c08d1cd67afdd1336c65ba23a044b6ac490f33 (diff)
downloadcpython-4a1c58d504a49eeb9be7beef3ca861a9d6b28ede.zip
cpython-4a1c58d504a49eeb9be7beef3ca861a9d6b28ede.tar.gz
cpython-4a1c58d504a49eeb9be7beef3ca861a9d6b28ede.tar.bz2
GH-96793: Specialize FOR_ITER for generators. (GH-98772)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index dfe06f8..990f5b6 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -328,6 +328,7 @@ _specializations = {
"FOR_ITER_ADAPTIVE",
"FOR_ITER_LIST",
"FOR_ITER_RANGE",
+ "FOR_ITER_GEN",
],
"LOAD_ATTR": [
"LOAD_ATTR_ADAPTIVE",