Skip to content

bpo-19184: Update the documentation of dis module. #13652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1113,9 +1113,13 @@ All of the following opcodes use their arguments.

.. opcode:: RAISE_VARARGS (argc)

Raises an exception. *argc* indicates the number of arguments to the raise
statement, ranging from 0 to 3. The handler will find the traceback as TOS2,
the parameter as TOS1, and the exception as TOS.
Raises an exception using one of the 3 forms of the ``raise`` statement,
depending on the value of *argc*:

* 0: ``raise`` (re-raise previous exception)
* 1: ``raise TOS`` (raise exception instance or type at ``TOS``)
* 2: ``raise TOS1 from TOS`` (raise exception instance or type at ``TOS1``
with ``__cause__`` set to ``TOS``)


.. opcode:: CALL_FUNCTION (argc)
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Juancarlo Añez
Chris Angelico
Jérémy Anger
Jon Anglin
Michele Angrisano
Ankur Ankan
Heidi Annexstad
Ramchandra Apte
Expand Down