This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Polux.Moon, docs@python, r.david.murray
Date 2014-12-18.15:15:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418915753.99.0.457821782871.issue23083@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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)".
History
Date User Action Args
2014-12-18 15:15:54r.david.murraysetrecipients: + r.david.murray, docs@python, Polux.Moon
2014-12-18 15:15:53r.david.murraysetmessageid: <1418915753.99.0.457821782871.issue23083@psf.upfronthosting.co.za>
2014-12-18 15:15:53r.david.murraylinkissue23083 messages
2014-12-18 15:15:53r.david.murraycreate