[Python-ideas] Please reconsider the Boolean evaluation of midnight
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Mar 6 05:41:11 CET 2014
Steven D'Aprano wrote:
> There's also the argument from consistency: midnight is the zero point
> of the day, and zero is falsey.
Regarding midnight as a "zero point" is an arbitrary
convention.
The integer zero is not arbitrary, because it's the
additive identity. There is no corresponding additive
identity for times, because you can't add two times.
--
Greg
More information about the Python-ideas
mailing list