1 parent 8ad1659 commit ad2889cCopy full SHA for ad2889c
1 file changed
docs/library/sys.rst
@@ -7,10 +7,11 @@
7
Functions
8
---------
9
10
-.. function:: exit([retval])
+.. function:: exit(retval=0)
11
12
- Raise a ``SystemExit`` exception. If an argument is given, it is the
13
- 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
14
+ value given as an argument to ``SystemExit``.
15
16
.. function:: print_exception(exc, [file])
17
0 commit comments