summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-11 20:51:42 -0700
committerGitHub <noreply@github.com>2019-06-11 20:51:42 -0700
commitf0cc1a91f72c7f60adc47ec9a4305d8d85dcb1f2 (patch)
treec541b6a45bb65ce427e4a41538d251ca32253ab4 /Doc
parent0745cc66db3acbe7951073071cf063db6337dd10 (diff)
downloadcpython-git-f0cc1a91f72c7f60adc47ec9a4305d8d85dcb1f2.tar.gz
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 405f648db7c44b07348582b5101d4716e0ce5ac3) Co-authored-by: Yao Zuo <laike9m@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index b8cf4463d9..5e6f002dcd 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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)