[Python-ideas] Please reconsider the Boolean evaluation of midnight

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 6 00:33:49 CET 2014


Paul Moore wrote:
> """in Boolean contexts, a time object is considered to be true if and
> only if, after converting it to minutes and subtracting utcoffset()
> (or 0 if that's None), the result is non-zero."""

Aaaaargh... I didn't know this had since been documented.

Wy opinion still stands -- documenting this was the
wrong thing to do. I hope it can still be fixed.

-- 
Greg


More information about the Python-ideas mailing list