]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125102)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Oct 2024 12:30:52 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 12:30:52 +0000 (12:30 +0000)
Doc: Improve description of ``GET_LEN`` opcode (GH-114583)
(cherry picked from commit e8773e59a835d23b9648271e0eb79c1651581564)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Doc/library/dis.rst

index ad8ef5dfc76ab8fc4046fb6e6891014e9df6e83e..aed4f38ba29ebe1a11d09089f2d3f09c54425bcb 100644 (file)
@@ -957,7 +957,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