[Python-ideas] Deprecate str.find

Mike Graham mikegraham at gmail.com
Fri Jul 15 18:51:40 CEST 2011


On Fri, Jul 15, 2011 at 12:31 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> While this would be a very good argument to make if we were currently
> designing the str API, I don't think the benefits of suppressing
> str.find outweight the burden of converting old code to use a different
> idiom.
>
> We could choose to write something about it in the documentation,
> though.
>
> Regards
>
> Antoine.


That could be just as suitable. To be honest, I can't really see too
much of a difference between a stronger note about the problems I
perceive with str.find in the documentation and a note that uses the
word "deprecated". There certainly wouldn't be occasion in the
foreseeable future for you actually to remove str.find.

Mike



More information about the Python-ideas mailing list