[Python-ideas] Default return values to int and float

Nick Coghlan ncoghlan at gmail.com
Wed Oct 5 04:48:03 CEST 2011


On Tue, Oct 4, 2011 at 10:21 PM, Guido van Rossum <guido at python.org> wrote:
> I'm out of ideas here. But of all these, str.find is probably still
> the worst -- I've flagged bugs caused by it too many times to count.

You're not the only one - there's a reason str.find/index discussions
always seem to devolve into attempts to find tolerable expression
syntaxes for converting a particular exception type into a default
value for the expression :P

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list