summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-06-04 16:51:05 (GMT)
committerGitHub <noreply@github.com>2021-06-04 16:51:05 (GMT)
commit17c4edc4e0692fe55e185755ea8a2f5238f3ef08 (patch)
tree563807f4bbdebbf89b2065e4807cc291c44be2b1 /Doc/library/dis.rst
parenta46c220edc5cf716d0b71eb80ac29ecdb4ebb430 (diff)
downloadcpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.zip
cpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.tar.gz
cpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.tar.bz2
bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530)
* Revert "bpo-43693: Compute deref offsets in compiler (gh-25152)" This reverts commit b2bf2bc1ece673d387341e06c8d3c2bc6e259747. * Revert "bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)" This reverts commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f. These two commits are breaking the refleak buildbots.
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst30
1 files changed, 7 insertions, 23 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index bc206f7..a4746bc 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -1058,24 +1058,17 @@ All of the following opcodes use their arguments.
.. opcode:: LOAD_CLOSURE (i)
- Pushes a reference to the cell contained in slot ``i`` of the "fast locals"
- storage. The name of the variable is ``co_fastlocalnames[i]``.
-
- Note that ``LOAD_CLOSURE`` is effectively an alias for ``LOAD_FAST``.
- It exists to keep bytecode a little more readable.
-
- .. versionchanged:: 3.11
- ``i`` is no longer offset by the length of ``co_varnames``.
+ Pushes a reference to the cell contained in slot *i* of the cell and free
+ variable storage. The name of the variable is ``co_cellvars[i]`` if *i* is
+ less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
+ len(co_cellvars)]``.
.. opcode:: LOAD_DEREF (i)
- Loads the cell contained in slot ``i`` of the "fast locals" storage.
+ Loads the cell contained in slot *i* of the cell and free variable storage.
Pushes a reference to the object the cell contains on the stack.
- .. versionchanged:: 3.11
- ``i`` is no longer offset by the length of ``co_varnames``.
-
.. opcode:: LOAD_CLASSDEREF (i)
@@ -1085,29 +1078,20 @@ All of the following opcodes use their arguments.
.. versionadded:: 3.4
- .. versionchanged:: 3.11
- ``i`` is no longer offset by the length of ``co_varnames``.
-
.. opcode:: STORE_DEREF (i)
- Stores TOS into the cell contained in slot ``i`` of the "fast locals"
+ Stores TOS into the cell contained in slot *i* of the cell and free variable
storage.
- .. versionchanged:: 3.11
- ``i`` is no longer offset by the length of ``co_varnames``.
-
.. opcode:: DELETE_DEREF (i)
- Empties the cell contained in slot ``i`` of the "fast locals" storage.
+ Empties the cell contained in slot *i* of the cell and free variable storage.
Used by the :keyword:`del` statement.
.. versionadded:: 3.2
- .. versionchanged:: 3.11
- ``i`` is no longer offset by the length of ``co_varnames``.
-
.. opcode:: RAISE_VARARGS (argc)