Skip to content
Snippets Groups Projects
Commit ad2889c1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

docs/sys: Clarify description of sys.exit().

parent 8ad1659f
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,11 @@
Functions
---------
.. function:: exit([retval])
.. function:: exit(retval=0)
Raise a ``SystemExit`` exception. If an argument is given, it is the
value given to ``SystemExit``.
Terminate current program with a given exit code. Underlyingly, this
function raise as ``SystemExit`` exception. If an argument is given, its
value given as an argument to ``SystemExit``.
.. function:: print_exception(exc, [file])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment