From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:32:04 +0000 (+0200) Subject: [3.12] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125103) X-Git-Tag: v3.12.8~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65272a382b9536e1c53484a58f0f9c392e2ca872;p=thirdparty%2FPython%2Fcpython.git [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 e8773e59a835d23b9648271e0eb79c1651581564) Co-authored-by: Kirill Podoprigora --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 82b4aa28857f..f9f82d25b874 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -850,7 +850,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