summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-06-08 22:01:34 (GMT)
committerGitHub <noreply@github.com>2021-06-08 22:01:34 (GMT)
commit3e1c7167d86a2a928cdcb659094aa10bb5550c4c (patch)
treeb3b071ff5636c7c5edd8d536b8732c6a2259a44c /Doc/library/dis.rst
parentab36b9f83424a020fbd672f218612e6f19257a32 (diff)
downloadcpython-3e1c7167d86a2a928cdcb659094aa10bb5550c4c.zip
cpython-3e1c7167d86a2a928cdcb659094aa10bb5550c4c.tar.gz
cpython-3e1c7167d86a2a928cdcb659094aa10bb5550c4c.tar.bz2
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
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index bc206f7..65fbb00 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -1056,6 +1056,14 @@ All of the following opcodes use their arguments.
Deletes local ``co_varnames[var_num]``.
+.. opcode:: MAKE_CELL (i)
+
+ Creates a new cell in slot ``i``. If that slot is empty then
+ that value is stored into the new cell.
+
+ .. versionadded:: 3.11
+
+
.. opcode:: LOAD_CLOSURE (i)
Pushes a reference to the cell contained in slot ``i`` of the "fast locals"