oddness in string.find(sub,somestring)
maxm at mxm.dk
Wed Mar 30 13:59:30 CEST 2005
> why would this be? And when is someone going to fix it :P
Whoops ... This missed the previous message together with the wink ...
"When *are* you going to fix it ..."
print string.find(searched_string, substring) # note the order
print string.find(searched_string, substring)
You will not make that error if you use the string method instead.
And you don't have to import anything either..
hilsen/regards Max M, Denmark
IT's Mad Science
More information about the Python-list