]> granicus.if.org Git - python/commitdiff
[Doc] Update opcode for var-positional arguments (GH-4446) (#4457)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 25 Nov 2017 15:57:41 +0000 (07:57 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Nov 2017 15:57:41 +0000 (17:57 +0200)
`BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`.
(cherry picked from commit 0c71653cb8231f176d02140fdef3706de2e93b9f)

Doc/library/dis.rst

index c795782034a4648dad9c3badbfaf986bd38c117f..c68b15a9d450096240563af5442dfe56f66ebbb8 100644 (file)
@@ -1053,7 +1053,7 @@ All of the following opcodes use their arguments.
    Pops all function arguments, and the function itself off the stack, and
    pushes the return value. Note that this opcode pops at most three items
    from the stack. Var-positional and var-keyword arguments are packed
-   by :opcode:`BUILD_MAP_UNPACK_WITH_CALL` and
+   by :opcode:`BUILD_TUPLE_UNPACK_WITH_CALL` and
    :opcode:`BUILD_MAP_UNPACK_WITH_CALL`.
 
    .. versionadded:: 3.6