R. David Murray added the comment:

>>> issubclass(bool, int)
True
>>> True == 1
True
[41846 refs]
>>> False == 0
True

This is fundamental to Python, so it is not obvious that it is a good idea to 
mention bool explicitly in the sys.exit docs.  Perhaps we could change it to 
say "int (or an int subclass such as bool)".

----------
nosy: +r.david.murray
versions:  -Python 3.2, Python 3.3, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to