Message212790
| Author |
belopolsky |
| Recipients |
Amber.Yust, Andreas.Pelme, Lakin.Wecker, belopolsky, cvrebert, dstufft, eric.araujo, georg.brandl, gwrtheyrn, lemburg, ncoghlan, r.david.murray, shai, tim.peters, yselivanov |
| Date |
2014年03月06日.02:30:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1394073025.34.0.0145400766665.issue13936@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|
History
|
|---|
| 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 |
|