From 3e1c7167d86a2a928cdcb659094aa10bb5550c4c Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Tue, 8 Jun 2021 16:01:34 -0600 Subject: bpo-43693: Un-revert commit f3fa63e. (#26609) This was reverted in GH-26596 (commit 6d518bb) due to some bad memory accesses. * Add the MAKE_CELL opcode. (gh-26396) The memory accesses have been fixed. https://bugs.python.org/issue43693 --- Lib/opcode.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Lib/opcode.py') diff --git a/Lib/opcode.py b/Lib/opcode.py index da143fe01f..4d5343179e 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -181,14 +181,16 @@ def_op('CALL_FUNCTION', 131) # #args def_op('MAKE_FUNCTION', 132) # Flags def_op('BUILD_SLICE', 133) # Number of items -def_op('LOAD_CLOSURE', 135) +def_op('MAKE_CELL', 135) hasfree.append(135) -def_op('LOAD_DEREF', 136) +def_op('LOAD_CLOSURE', 136) hasfree.append(136) -def_op('STORE_DEREF', 137) +def_op('LOAD_DEREF', 137) hasfree.append(137) -def_op('DELETE_DEREF', 138) +def_op('STORE_DEREF', 138) hasfree.append(138) +def_op('DELETE_DEREF', 139) +hasfree.append(139) def_op('CALL_FUNCTION_KW', 141) # #args + #kwargs def_op('CALL_FUNCTION_EX', 142) # Flags -- cgit v1.2.1