summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index e3919c2..75b84a8 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -1434,7 +1434,7 @@ iterations of the loop.
slot ``i`` of the "fast locals" storage in this mapping.
If the name is not found there, loads it from the cell contained in
slot ``i``, similar to :opcode:`LOAD_DEREF`. This is used for loading
- free variables in class bodies (which previously used
+ :term:`closure variables <closure variable>` in class bodies (which previously used
:opcode:`!LOAD_CLASSDEREF`) and in
:ref:`annotation scopes <annotation-scopes>` within class bodies.
@@ -1463,8 +1463,8 @@ iterations of the loop.
.. opcode:: COPY_FREE_VARS (n)
- Copies the ``n`` free variables from the closure into the frame.
- Removes the need for special code on the caller's side when calling
+ Copies the ``n`` :term:`free (closure) variables <closure variable>` from the closure
+ into the frame. Removes the need for special code on the caller's side when calling
closures.
.. versionadded:: 3.11
@@ -1937,10 +1937,10 @@ instructions:
.. data:: hasfree
- Sequence of bytecodes that access a free variable. 'free' in this
- context refers to names in the current scope that are referenced by inner
- scopes or names in outer scopes that are referenced from this scope. It does
- *not* include references to global or builtin scopes.
+ Sequence of bytecodes that access a :term:`free (closure) variable <closure variable>`.
+ 'free' in this context refers to names in the current scope that are
+ referenced by inner scopes or names in outer scopes that are referenced
+ from this scope. It does *not* include references to global or builtin scopes.
.. data:: hasname