[Python-ideas] Please reconsider the Boolean evaluation of midnight
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 7 00:12:55 CET 2014
Andrew Barnert wrote:
> I agree with Stefan here. Treating midnight as zero is not at all baffling.
> There's a reason modular arithmetic is taught to kids as "clock arithmetic",
I still say this is confusing times with timedeltas. It
makes no conceptual sense to add two times of day together.
You can only make it work if you abuse one type to mean
two different things.
We keep datetimes and timedeltas clearly separated. Why
shouldn't we do the same for times of day?
--
Greg
More information about the Python-ideas
mailing list