summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2022-12-23 16:26:42 (GMT)
committerGitHub <noreply@github.com>2022-12-23 16:26:42 (GMT)
commitc3c7848a48b74a321632202e4bdcf2f465fb1cc6 (patch)
treec880b1a9a096b627e85d643db00704e03f041446 /Lib
parent7fc7909677759fd0cb9d30cd7ff839afd3973325 (diff)
downloadcpython-c3c7848a48b74a321632202e4bdcf2f465fb1cc6.zip
cpython-c3c7848a48b74a321632202e4bdcf2f465fb1cc6.tar.gz
cpython-c3c7848a48b74a321632202e4bdcf2f465fb1cc6.tar.bz2
gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/opcode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index fc57aff..59f368c 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -336,6 +336,7 @@ _specializations = {
# These will always push [unbound method, self] onto the stack.
"LOAD_ATTR_METHOD_LAZY_DICT",
"LOAD_ATTR_METHOD_NO_DICT",
+ "LOAD_ATTR_METHOD_MANAGED_DICT",
"LOAD_ATTR_METHOD_WITH_DICT",
"LOAD_ATTR_METHOD_WITH_VALUES",
],