Newbie question on Re module
Tom Zych
tztemp14 at pobox.com
Sat Jan 4 10:39:18 EST 2003
Andrew McGregor wrote:
> if str.index('binaries') == -1:
> # then str did not contain the word.
Python 2.2 doesn't return -1 when string.index fails; it raises
a ValueError exception. Are there older versions of Python that
return -1?
--
Tom Zych
This email address will expire at some point to thwart spammers.
Permanent address is rot13(gbzmlpu at cbobk.pbz).
More information about the Python-list
mailing list