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/095399.html below:

[Python-Dev] String methods... finally

[Python-Dev] String methods... finally [Python-Dev] String methods... finallyBarry A. Warsaw bwarsaw at cnri.reston.va.us
Fri Jun 11 19:58:36 CEST 1999
>>>>> "FL" == Fredrik Lundh <fredrik at pythonware.com> writes:

    >> Two new methods startswith and endswith act like their Java
    >> cousins.

    FL> is it just me, or do those method names suck?

    FL> begin?  starts_with?  startsWith? (ouch)
    FL> has_prefix?

The inspiration was Java string objects, while trying to remain as
Pythonic as possible (no mixed case).  startswith and endswith doen't
seem as bad as issubclass to me :)

-Barry


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