Skip to content

Commit 65272a3

Browse files
[3.12] Doc: Improve description of GET_LEN opcode (GH-114583) (#125103)
Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (cherry picked from commit e8773e5) Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent d3b437c commit 65272a3

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
@@ -850,7 +850,8 @@ iterations of the loop.
850850

851851
.. opcode:: GET_LEN
852852

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

855856
.. versionadded:: 3.10
856857

0 commit comments

Comments
 (0)