Moving around in a string

Mark Engle engSpideRlem at
Sat Dec 6 15:18:00 CET 2003

Peter Otten wrote:

> Mark Engle wrote:
> >
> > 
> One caveat (only for the string module), quoting from the above
> document, but easily overlooked:
> "Many of the functions provided by this module are also defined as
> methods of string and Unicode objects; see ``String Methods''
> (section 2.2.6) for more information on those." 
> So whenever you're tempted to write string.somefunc(s, moreargs),
> rather use s.somefunc(moreargs).
> Peter

Thank you.  Time to do some more reading.


More information about the Python-list mailing list