Sion Arrowsmith wrote:
> But can you come up with a method for remembering which way
> round str.find() and str.index() are?

Don't use "str" and you won't have anything to remember:

'foo bar baz'.find('spam')
'spanish inquisition'.index('parrot')

-Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to