Message190470
It's not exactly the same of course, but calling next on a thing that might be empty would be somewhat close, and also is replacing an exception with a sentinel (an exception that is much easier to differentiate).
You can always get a ValueError out of min/max, they're going to be ultimately calling __lt__ on stuff which can do what it wants, but that's admittedly quite unlikely.
It's not really that readable though on the other hand. |
|
Date |
User |
Action |
Args |
2013-06-02 03:37:12 | Julian | set | recipients:
+ Julian, twouters, r.david.murray |
2013-06-02 03:37:12 | Julian | set | messageid: <1370144232.28.0.136344695502.issue18111@psf.upfronthosting.co.za> |
2013-06-02 03:37:12 | Julian | link | issue18111 messages |
2013-06-02 03:37:11 | Julian | create | |
|