<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 15, 2011, at 6:57 AM, Mike Graham wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>str.find (and bytes.find) is worse than the alternatives in every way.<br>It should be explicitly deprecated in favour of str.__contains__ and<br>str.index.<br></div></blockquote><br></div><div>Unless an API is flat out broken, deprecation is almost always a bad idea.</div><div>This API has been around for a very long time, so deprecating it will</div><div>break lots of people's code for almost zero benefit:</div><div><br></div><div><a href="http://www.google.com/codesearch#search/&q=%5C.find%5C(%20lang:%5Epython$&type=cs">http://www.google.com/codesearch#search/&q=%5C.find%5C(%20lang:%5Epython$&type=cs</a></div><div><br></div><div><br></div><div>Raymond</div></body></html>