]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125103)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Oct 2024 12:32:04 +0000 (14:32 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 12:32:04 +0000 (12:32 +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 82b4aa28857f418bdd542e0f43c4beb10b073a9e..f9f82d25b874e85d658d5eae7daebe8d12c8be22 100644 (file)
@@ -850,7 +850,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