Message152558
I don't think I would have ever thought of testing a datetime for its truth value. But the behavior you observe is consistent with the rest of Python: 0 is false.
I wonder if this is by design or by accident. |
|
Date |
User |
Action |
Args |
2012-02-03 20:52:02 | r.david.murray | set | recipients:
+ r.david.murray, Lakin.Wecker |
2012-02-03 20:52:02 | r.david.murray | set | messageid: <1328302322.18.0.0298503242216.issue13936@psf.upfronthosting.co.za> |
2012-02-03 20:52:01 | r.david.murray | link | issue13936 messages |
2012-02-03 20:52:01 | r.david.murray | create | |
|