Message170538
| Author |
chris.jerdonek |
| Recipients |
belopolsky, brett.cannon, chris.jerdonek, ezio.melotti, pitrou |
| Date |
2012年09月15日.22:45:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1347749138.58.0.216123143052.issue15933@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
if today == todayagain:
- break
+ return # test passed
Might it make more sense to do the passing time-delta check inside the loop (at the above location), and then raise an exception at the end if the loop exhausts? I think this might be clearer (in addition to preventing unnecessary looping). |
|