Skip to content

Commit 8e98322

Browse files
Eclips4efimov-mikhail
authored andcommitted
Doc: Improve description of GET_LEN opcode (python#114583)
1 parent 6002315 commit 8e98322

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

970970
.. opcode:: GET_LEN
971971

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

974975
.. versionadded:: 3.10
975976

0 commit comments

Comments
 (0)