Skip to content

Commit ad2889c

Browse files
committed
docs/sys: Clarify description of sys.exit().
1 parent 8ad1659 commit ad2889c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/library/sys.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
Functions
88
---------
99

10-
.. function:: exit([retval])
10+
.. function:: exit(retval=0)
1111

12-
Raise a ``SystemExit`` exception. If an argument is given, it is the
13-
value given to ``SystemExit``.
12+
Terminate current program with a given exit code. Underlyingly, this
13+
function raise as ``SystemExit`` exception. If an argument is given, its
14+
value given as an argument to ``SystemExit``.
1415

1516
.. function:: print_exception(exc, [file])
1617

0 commit comments

Comments
 (0)