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:
- what is it going to be replaced with?
- is that usable in 2.7 (if so, I'll use it now so as to avoid recoding later)?