Author r.david.murray
Recipients Julian, r.david.murray, twouters
Date 2013-06-02.02:43:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370141009.23.0.124894170407.issue18111@psf.upfronthosting.co.za>
In-reply-to
Content
So you aren't really asking for a default, you are asking for a version of max/min that returns a sentinel instead of raising an error on an empty list. You could just write utility function that has a try/except in it.  I'm not sure it is worth complicating min and max for this use case.  (I'm not sure it isn't, either.)  I wonder if we have any other functions in python that have an argument that turns a ValueError into a sentinel-return instead?
History
Date User Action Args
2013-06-02 02:43:29r.david.murraysetrecipients: + r.david.murray, twouters, Julian
2013-06-02 02:43:29r.david.murraysetmessageid: <1370141009.23.0.124894170407.issue18111@psf.upfronthosting.co.za>
2013-06-02 02:43:29r.david.murraylinkissue18111 messages
2013-06-02 02:43:28r.david.murraycreate