Author Julian
Recipients Julian, r.david.murray, twouters
Date 2013-06-02.03:37:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370144232.28.0.136344695502.issue18111@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-06-02 03:37:12Juliansetrecipients: + Julian, twouters, r.david.murray
2013-06-02 03:37:12Juliansetmessageid: <1370144232.28.0.136344695502.issue18111@psf.upfronthosting.co.za>
2013-06-02 03:37:12Julianlinkissue18111 messages
2013-06-02 03:37:11Juliancreate