Author r.david.murray
Recipients Lakin.Wecker, r.david.murray
Date 2012-02-03.20:52:01
SpamBayes Score 0.018336
Marked as misclassified No
Message-id <1328302322.18.0.0298503242216.issue13936@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-02-03 20:52:02r.david.murraysetrecipients: + r.david.murray, Lakin.Wecker
2012-02-03 20:52:02r.david.murraysetmessageid: <1328302322.18.0.0298503242216.issue13936@psf.upfronthosting.co.za>
2012-02-03 20:52:01r.david.murraylinkissue13936 messages
2012-02-03 20:52:01r.david.murraycreate