Skip to content

Commit 0a63c66

Browse files
[3.13] Doc: Improve description of GET_LEN opcode (GH-114583) (#125102)
Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (cherry picked from commit e8773e5) Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent 8499115 commit 0a63c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/dis.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,8 @@ iterations of the loop.
957957

958958
.. opcode:: GET_LEN
959959

960-
Perform ``STACK.append(len(STACK[-1]))``.
960+
Perform ``STACK.append(len(STACK[-1]))``. Used in :keyword:`match` statements where
961+
comparison with structure of pattern is needed.
961962

962963
.. versionadded:: 3.10
963964

0 commit comments

Comments
 (0)