The documentation for Python 2.7 lists string.find
as a deprecated function but does not (unlike atoi
and atol
) provide an alternative.
I'm coding in 2.7 at the moment so I'm happy to use it but I would like to know:
Almost the entire string
module has been moved to the str
type as method functions.
Why are you using the string
module, when almost everything you need is already part of the string type?
http://docs.python.org/library/stdtypes.html#str.find
The string type -- and it's methods -- is not deprecated. Indeed, it will me morphed to include Unicode in Python 3.
A lot of methods in string have been replaced by the str class. Here is str.find.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With