[Python-Dev] String methods... finally
mal at lemburg.com
Fri Jun 11 15:11:20 CEST 1999
Fredrik Lundh wrote:
> > Two new methods startswith and endswith act like their Java cousins.
> is it just me, or do those method names suck?
> begin? starts_with? startsWith? (ouch)
In mxTextTools I used the names prefix() and suffix() for much
the same thing except that those functions accept a list of
strings and return the (first) matching string instead of
just 1 or 0. Details are available at:
Y2000: 203 days left
Python Pages: http://www.lemburg.com/python/
More information about the Python-Dev