[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

Alexander Belopolsky report at bugs.python.org
Thu Apr 23 22:26:01 CEST 2015


Alexander Belopolsky added the comment:

The key issue here is not to report success for nonzero values.

I consider the following a bug:

$ python3
Python 3.4.2 (default, Oct 30 2014, 08:51:12)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.exit(256)
$ echo $?
0

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14376>
_______________________________________


More information about the Python-bugs-list mailing list