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

Terry J. Reedy report at bugs.python.org
Wed Feb 1 08:41:48 EST 2017


Terry J. Reedy added the comment:

Summary of overt and implied votes:
Core Devs:
+1 Mark Dickenson
+1 Ethan Furman
?? Serhiy Storchaka
-1 Alexander Belopolsky (at first, but unclear after)

Other:
+1 Ryan Gonzales, quoting Guido about equivalence of ints and longs.

The sys.exit docstring says "If the status is an integer, it will be used as the system exit status."  In 2.7, 'integer' clearly includes longs.

Does anyone know the Windows equivalent of 'echo $?'?

Gareth, I think the problem is that this is a minor 2.7-only, non-security issue and therefore a low priority for most Core Devs.

----------

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


More information about the Python-bugs-list mailing list