On Feb 22, 9:18 am, Mark Dickinson <dicki...@gmail.com> wrote:
> On Feb 21, 10:44 pm, Ethan Furman <et...@stoneleaf.us> wrote:
>
> > --> midnight = datetime.time(0,0,0)
> > --> bool(midnight)
> > False
>
> I'd call this a bug.

...although looking at the source (see the function
time_nonzero in Modules/datetimemodule.c), this
behaviour is clearly intentional.  So it's not a bug;
merely a questionable design decision.  :)

Mark

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to