Message212790
> If Midnight is considered the last moment of the day then it
> evaluating to false makes even less sense since the rationale
> given is "time is seconds since midnight".
You are erecting a straw-man. Python clearly considers time(0) to be the first moment of the day, not the last:
>>> time(0) < time(1)
True
It is my application that makes the opposite choice. Helpfully, boolean property of time(0) makes it easy to write code that treats midnight as a special case. |
|
Date |
User |
Action |
Args |
2014-03-06 02:30:25 | belopolsky | set | recipients:
+ belopolsky, lemburg, tim.peters, georg.brandl, ncoghlan, eric.araujo, r.david.murray, cvrebert, gwrtheyrn, Lakin.Wecker, yselivanov, shai, dstufft, Andreas.Pelme, Amber.Yust |
2014-03-06 02:30:25 | belopolsky | set | messageid: <1394073025.34.0.0145400766665.issue13936@psf.upfronthosting.co.za> |
2014-03-06 02:30:25 | belopolsky | link | issue13936 messages |
2014-03-06 02:30:25 | belopolsky | create | |
|