[New-bugs-announce] [issue24052] sys.exit(code) returns "success" to the OS for some values of code
Alexander Belopolsky
report at bugs.python.org
Fri Apr 24 17:29:13 CEST 2015
New submission from Alexander Belopolsky:
$ python3
Python 3.4.3 (default, Mar 2 2015, 11:08:35)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import subprocess
>>> subprocess.call([sys.executable, '-c', "import sys;sys.exit(512)"])
0
>>> subprocess.call([sys.executable, '-c', "import sys;sys.exit(256)"])
0
See also #14376.
----------
components: Interpreter Core
messages: 241946
nosy: belopolsky
priority: normal
severity: normal
status: open
title: sys.exit(code) returns "success" to the OS for some values of code
type: behavior
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24052>
_______________________________________
More information about the New-bugs-announce
mailing list