[Python-ideas] bool(datetime.time(0, 0))
Mike Meyer
mwm at mired.org
Tue May 8 13:58:20 CEST 2012
Nick Coghlan <ncoghlan at gmail.com> wrote:
>The problem is not using boolean evaluation - it's assuming that
>boolean
>evaluation is defined as "x is not None". Doing so introduces a
>completely
>unnecessary dependency on the type of "x". I'm frankly astonished that
>so
>many people seem to think it's a reasonable thing to do.
+1
--
Sent from my Android tablet. Please excuse my swyping.
More information about the Python-ideas
mailing list