Testing if string contains a substring

Duncan Booth duncan at NOSPAMrcp.co.uk
Thu Apr 24 11:55:54 CEST 2003


Frantisek Fuka <fuka at fuxoft.cz> wrote in 
news:b88akc$31dm$1 at ns.felk.cvut.cz:

> Many thanks to everyone. Can I get the "new" string functions 
> explanation somewhere? I have Python 2.2.2 but the current documentation 
> only seems to mention the old-style STRING module...
> 
See section 2.2.6.1 of the library reference documentation.
http://www.python.org/doc/current/lib/string-methods.html

P.S. Please can you try to avoid top posting as it makes it hard to follow 
the thread.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?




More information about the Python-list mailing list