En Thu, 06 Sep 2007 20:48:31 -0300, Zentrader <[EMAIL PROTECTED]>  
escribi�:
> On Sep 6, 12:47 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>>
>> Maybe better the ``in`` operator for the '*string*' type.  `str.find()`
>> will go away in the future.
>
> string.find serves a useful purpose in that it returns the starting
> location of the string found, or -1 if not found, so if you wanted to
> slice "abdecf" on"c", string.find will tell you where that is.

PEP3100 says it will be removed, but at the same time says [UNLIKELY]...
<http://www.python.org/dev/peps/pep-3100/#id36>

partition serves almost the same purpose and its easier to use.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to