[Python-Dev] String methods... finally

Barry 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