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

Ethan Furman report at bugs.python.org
Fri Apr 24 17:15:11 CEST 2015


Ethan Furman added the comment:

I previously wrote:
------------------
> Gareth, please ignore my comments about adding guards on the return value -- it is up
> to the O/S to use or adjust whatever Python returns.

Let me clarify that a bit: we need to protect against overflow from <long> to <int>; protecting against overflow from <int> to <O/S returncode size> is a separate issue.

----------

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


More information about the Python-bugs-list mailing list