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 <>
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?
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: <>
2013-06-02 02:43:29r.david.murraylinkissue18111 messages
2013-06-02 02:43:28r.david.murraycreate