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

Original file line number Diff line number Diff line change
@@ -1219,10 +1219,10 @@ All of the following opcodes use their arguments.
1219 1219
1220 1220 .. opcode:: EXTENDED_ARG (ext)
1221 1221
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.
1226 1226
1227 1227
1228 1228 .. opcode:: FORMAT_VALUE (flags)