Skip to content

Commit 405f648

Browse files
laike9mserhiy-storchaka
authored andcommitted
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.
1 parent 376ce98 commit 405f648

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
@@ -1219,10 +1219,10 @@ All of the following opcodes use their arguments.
12191219

12201220
.. opcode:: EXTENDED_ARG (ext)
12211221

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

12271227

12281228
.. opcode:: FORMAT_VALUE (flags)

0 commit comments

Comments
 (0)