[Python-ideas] Deprecate str.find
Nick Coghlan
ncoghlan at gmail.com
Sat Jul 16 10:51:12 CEST 2011
On Sat, Jul 16, 2011 at 6:47 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> By the way: str.index() raises ValueError, not IndexError, if the substring
> isn't found. That's one argument against "the index() API is foolproof,
> while the find() API isn't".
Yeah, that bugs me too.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list