[Python-ideas] bool(datetime.time(0, 0))

Antoine Pitrou solipsis at pitrou.net
Mon May 7 17:32:54 CEST 2012


On Mon, 7 May 2012 11:19:04 -0400
Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> On Mon, May 7, 2012 at 11:11 AM, Mark Dickinson <dickinsm at gmail.com> wrote:
> >> 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.
> 
> Can anyone show a use case where the change will result in an
> improvement?

Well, less occasional puzzlement is an improvement in itself.
Unintuitive behaviour is always a risk for software quality.

Regards

Antoine.





More information about the Python-ideas mailing list