[Python-ideas] bool(datetime.time(0, 0))
Mark Dickinson
dickinsm at gmail.com
Mon May 7 17:11:55 CEST 2012
> Steven D'Aprano <steve at pearwood.info> wrote:
> 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.
I agree for the date, time and datetime classes. Having timedelta(0)
be False makes sense to me, though.
But see:
http://bugs.python.org/issue13936
Mark
More information about the Python-ideas
mailing list