Message233356
Indeed, the short circuit and value return behavior is described in that section just before the example.
I agree with Joel. This is a tutorial, and part of the zen of Python is that all expressions have a boolean value. There are very few places in python programs where it would be considered Pythonic to "cast" a value to one of the two uniquely boolean values via the Bool operator, so it is better that it *not* be mentioned in this context. |
|
Date |
User |
Action |
Args |
2015-01-03 13:19:57 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, ethan.furman, josh.r, jpotelle |
2015-01-03 13:19:57 | r.david.murray | set | messageid: <1420291197.67.0.537629996368.issue23153@psf.upfronthosting.co.za> |
2015-01-03 13:19:57 | r.david.murray | link | issue23153 messages |
2015-01-03 13:19:57 | r.david.murray | create | |
|