Message245555
| Author |
ncoghlan |
| Recipients |
doerwalter, larry, ncoghlan, yselivanov |
| Date |
2015年06月20日.08:50:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1434790259.54.0.895102285811.issue24474@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The sentinel form of next() is nice when there's a natural sentinel value, but needing to *create* a sentinel is generally a sign that the out-of-band exception is a better fit.
The function could likely do with some refactoring (e.g. breaking out some helper functions to make the logic easier to follow), but shifting from idiomatic code to non-idiomatic code isn't a good way of tackling that. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年06月20日 08:50:59 | ncoghlan | set | recipients:
+ ncoghlan, doerwalter, larry, yselivanov |
| 2015年06月20日 08:50:59 | ncoghlan | set | messageid: <1434790259.54.0.895102285811.issue24474@psf.upfronthosting.co.za> |
| 2015年06月20日 08:50:59 | ncoghlan | link | issue24474 messages |
| 2015年06月20日 08:50:59 | ncoghlan | create |
|