A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-June/095388.html below:

[Python-Dev] String methods... finally

[Python-Dev] String methods... finally [Python-Dev] String methods... finallyM.-A. Lemburg 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)
> has_prefix?

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:

	http://starship.skyport.net/~lemburg/mxTextTools.html

-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                   203 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4