[Python-ideas] bool(datetime.time(0, 0))
Steven D'Aprano
steve at pearwood.info
Mon May 7 16:38:19 CEST 2012
Ram Rachum wrote:
> Hello,
>
> Currently, `bool(datetime.time(0, 0)) is False`.
>
> Can we change that to `True`?
>
> There is nothing False-y about midnight.
Of course there is -- it is the witching hour, and witches are known to be
deceivers whose words and actions are false.
*wink*
I fear that backwards compatibility will prevent any change, but I don't see
any good reasons for treating any date or time as a false value.
By the way, the "To:" address on your post is set to
python-ideas at googlegroups.com, which does not exist.
--
Steven
More information about the Python-ideas
mailing list