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

This commit is contained in:
Paul Sokolovsky 2016-05-01 13:42:36 +03:00
parent 8ad1659f68
commit ad2889c141
1 changed files with 4 additions and 3 deletions

View File

@ -7,10 +7,11 @@
Functions Functions
--------- ---------
.. function:: exit([retval]) .. function:: exit(retval=0)
Raise a ``SystemExit`` exception. If an argument is given, it is the Terminate current program with a given exit code. Underlyingly, this
value given to ``SystemExit``. function raise as ``SystemExit`` exception. If an argument is given, its
value given as an argument to ``SystemExit``.
.. function:: print_exception(exc, [file]) .. function:: print_exception(exc, [file])