Skip to content

Commit

Permalink
bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)
Browse files Browse the repository at this point in the history
Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
(cherry picked from commit 405f648)

Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
  • Loading branch information
miss-islington and laike9m committed Jun 12, 2019
1 parent 0745cc6 commit f0cc1a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/library/dis.rst
Expand Up @@ -1165,10 +1165,10 @@ All of the following opcodes use their arguments.

.. opcode:: EXTENDED_ARG (ext)

Prefixes any opcode which has an argument too big to fit into the default two
bytes. *ext* holds two additional bytes which, taken together with the
subsequent opcode's argument, comprise a four-byte argument, *ext* being the
two most-significant bytes.
Prefixes any opcode which has an argument too big to fit into the default one
byte. *ext* holds an additional byte which act as higher bits in the argument.
For each opcode, at most three prefixal ``EXTENDED_ARG`` are allowed, forming
an argument from two-byte to four-byte.


.. opcode:: FORMAT_VALUE (flags)
Expand Down

0 comments on commit f0cc1a9

Please sign in to comment.