Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3979150 commit a24e25dCopy full SHA for a24e25d
1 file changed
Doc/library/dis.rst
@@ -922,9 +922,10 @@ iterations of the loop.
922
.. opcode:: UNPACK_SEQUENCE (count)
923
924
Unpacks ``STACK[-1]`` into *count* individual values, which are put onto the stack
925
- right-to-left::
+ right-to-left. Require there to be exactly *count* values.::
926
927
- STACK.extend(STACK.pop()[:count:-1])
+ assert(len(STACK[-1]) == count)
928
+ STACK.extend(STACK.pop()[:-count-1:-1])
929
930
931
.. opcode:: UNPACK_EX (counts)
0 commit comments