Skip to content

Commit

Permalink
[3.13] Doc: Improve description of GET_LEN opcode (pythonGH-114583)…
Browse files Browse the repository at this point in the history
… (python#125102)

Doc: Improve description of ``GET_LEN`` opcode (pythonGH-114583)
(cherry picked from commit e8773e5)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
  • Loading branch information
miss-islington and Eclips4 authored Oct 8, 2024
1 parent 8499115 commit 0a63c66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0a63c66

Please sign in to comment.