You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e44c1f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Doc/library/sys.rst
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2432,6 +2432,26 @@ always available. Unless explicitly noted otherwise, all variables are read-only
2432
2432
.. versionadded:: 3.2
2433
2433
2434
2434
2435
+
.. data:: EXIT_SUCCESS
2436
+
2437
+
An int you can use to indicate your program ended gracefully.
2438
+
2439
+
.. code-block:: python
2440
+
2441
+
sys.exit(sys.EXIT_SUCCESS)
2442
+
2443
+
.. versionadded:: 3.16
2444
+
2445
+
.. data:: EXIT_FAILURE
2446
+
2447
+
An int you can use to indicate your program encountered an error.
2448
+
2449
+
.. code-block:: python
2450
+
2451
+
sys.exit(sys.EXIT_FAILURE)
2452
+
2453
+
.. versionadded:: 3.16
2454
+
2435
2455
.. rubric:: Citations
2436
2456
2437
2457
.. [C99] ISO/IEC 9899:1999. "Programming languages -- C." A public draft of this standard is available at https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf\ .
0 commit comments