From a24e25d74bb5d30775a61853d34e0bb5a7e12c64 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Mon, 31 Jul 2023 00:40:37 +0900 Subject: gh-107427: Update the description of UNPACK_SEQUENCE (gh-107429) --- Doc/library/dis.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index accc652..2217c3a 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -922,9 +922,10 @@ iterations of the loop. .. opcode:: UNPACK_SEQUENCE (count) Unpacks ``STACK[-1]`` into *count* individual values, which are put onto the stack - right-to-left:: + right-to-left. Require there to be exactly *count* values.:: - STACK.extend(STACK.pop()[:count:-1]) + assert(len(STACK[-1]) == count) + STACK.extend(STACK.pop()[:-count-1:-1]) .. opcode:: UNPACK_EX (counts) -- cgit v0.12