python string.find() method does not take keyword arguments

Viewed 10906

I'm having a problem with the Python string.find() method. It seems to work just fine this way:

 p = mystr.find('id=')

It correctly returns the first match.

However, when I try to use the format with other arguments, like:

 p2 = mystr.find('id=', start=p+3)

It reports that: find() not take keyword arguments

I'm not sure what's going on here.

2 Answers
Related