[New-bugs-announce] [issue23083] sys.exit with bool parameter

Polux Moon report at bugs.python.org
Thu Dec 18 16:06:24 CET 2014


New submission from Polux Moon:

when using a bool as parameter implementation (2.7) behave like:
sys.exit(True) <=> sys.exit(1)
sys.exit(False) <=> sys.exit(0)

so the bool indicate if the termination is abnormal

following the doc it should be equivalent to sys.exit(1) in all cases
if we assume the implementation is right, the doc should describe the behavior for boolean input

----------
assignee: docs at python
components: Documentation
messages: 232883
nosy: Polux.Moon, docs at python
priority: normal
severity: normal
status: open
title: sys.exit with bool parameter
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list