bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)

Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
(cherry picked from commit 405f648db7)

Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2019-06-11 20:53:58 -07:00 committed by GitHub
parent 9d37ae0bee
commit 811f84d55d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1219,10 +1219,10 @@ All of the following opcodes use their arguments.
.. opcode:: EXTENDED_ARG (ext) .. opcode:: EXTENDED_ARG (ext)
Prefixes any opcode which has an argument too big to fit into the default two Prefixes any opcode which has an argument too big to fit into the default one
bytes. *ext* holds two additional bytes which, taken together with the byte. *ext* holds an additional byte which act as higher bits in the argument.
subsequent opcode's argument, comprise a four-byte argument, *ext* being the For each opcode, at most three prefixal ``EXTENDED_ARG`` are allowed, forming
two most-significant bytes. an argument from two-byte to four-byte.
.. opcode:: FORMAT_VALUE (flags) .. opcode:: FORMAT_VALUE (flags)