Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4af4d27

Browse files
committed
#18839: document that sys.exit() will not accept a non-integer numeric value as exit status.
1 parent ca4d97e commit 4af4d27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ PyDoc_STRVAR(exit_doc,
240240
\n\
241241
Exit the interpreter by raising SystemExit(status).\n\
242242
If the status is omitted or None, it defaults to zero (i.e., success).\n\
243-
If the status is numeric, it will be used as the system exit status.\n\
243+
If the status is an integer, it will be used as the system exit status.\n\
244244
If it is another kind of object, it will be printed and the system\n\
245245
exit status will be one (i.e., failure)."
246246
);

0 commit comments

Comments
 (0)