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