Using wild character
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu Sep 6 20:53:04 EDT 2007
More information about the Python-list mailing list
Thu Sep 6 20:53:04 EDT 2007
- Previous message (by thread): Using wild character
- Next message (by thread): Using wild character
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
En Thu, 06 Sep 2007 20:48:31 -0300, Zentrader <zentraders at gmail.com> escribi�: > On Sep 6, 12:47 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> 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
- Previous message (by thread): Using wild character
- Next message (by thread): Using wild character
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list