bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985) · python/cpython@f0cc1a9 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1165,10 +1165,10 @@ All of the following opcodes use their arguments.
1165 1165
1166 1166 .. opcode:: EXTENDED_ARG (ext)
1167 1167
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.
1172 1172
1173 1173
1174 1174 .. opcode:: FORMAT_VALUE (flags)