]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Improve description of ``GET_LEN`` opcode (#114583)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Tue, 8 Oct 2024 12:25:40 +0000 (15:25 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 12:25:40 +0000 (17:55 +0530)
Doc/library/dis.rst

index 75b84a8d827bc9c032f47c876efcb50519e704bf..1d084a8bf38d980aa4553431739fe87d467a19c6 100644 (file)
@@ -969,7 +969,8 @@ iterations of the loop.
 
 .. opcode:: GET_LEN
 
-   Perform ``STACK.append(len(STACK[-1]))``.
+   Perform ``STACK.append(len(STACK[-1]))``. Used in :keyword:`match` statements where
+   comparison with structure of pattern is needed.
 
    .. versionadded:: 3.10