[Python-ideas] Please reconsider the Boolean evaluation of midnight
Antoine Pitrou
solipsis at pitrou.net
Thu Mar 6 11:43:12 CET 2014
Le 06/03/2014 03:19, Steven D'Aprano a écrit :
>
> It may only be a convention that an instant before midnight is the end
> of the day and midnight the beginning of the next, but it is a
> convention: midnight is the origin (i.e. zero point) of the day. That
> makes it arguably as falsey as 0, 0.0 and 0j.
A zero in algebra has a special meaning with respect to an operator
(e.g. addition). Midnight doesn't have such a special meaning.
Regards
Antoine.
More information about the Python-ideas
mailing list