Skip to content

Commit f0cc1a9

Browse files
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 405f648) Co-authored-by: Yao Zuo <[email protected]>
1 parent 0745cc6 commit f0cc1a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/dis.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,10 @@ All of the following opcodes use their arguments.
11651165

11661166
.. opcode:: EXTENDED_ARG (ext)
11671167

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

11731173

11741174
.. opcode:: FORMAT_VALUE (flags)

0 commit comments

Comments
 (0)