Message232884
>>> 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)". |
|
Date |
User |
Action |
Args |
2014-12-18 15:15:54 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, Polux.Moon |
2014-12-18 15:15:53 | r.david.murray | set | messageid: <1418915753.99.0.457821782871.issue23083@psf.upfronthosting.co.za> |
2014-12-18 15:15:53 | r.david.murray | link | issue23083 messages |
2014-12-18 15:15:53 | r.david.murray | create | |
|