mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
[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 e8773e59a8
)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
parent
84991153da
commit
0a63c66035
1 changed files with 2 additions and 1 deletions
|
@ -957,7 +957,8 @@ iterations of the loop.
|
||||||
|
|
||||||
.. opcode:: GET_LEN
|
.. 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
|
.. versionadded:: 3.10
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue