[Python-checkins] CVS: python/dist/src/Lib string.py
Barry A. Warsaw
bwarsaw@cnri.reston.va.us
Thu, 10 Jun 1999 18:51:38 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Lib
In directory anthem:/projects/python/develop/bwarsaw/src/Lib
Modified Files:
Tag: string_methods
string.py
Log Message:
Change most string module functions to be wrappers around method calls
on their first argument (must be a string object). This maintains the
public (and documented) interface for the string module but allows for
future expansion when Unicode string objects are added. strop module
is now more or less obsolete, but should still work. All existing
code that uses the string module should continue to work unchanged.
These functions have no equivalent string object methods:
ljust
rjust
center
zfill
expandtabs
capwords
maketrans
startswith() and endswith() are new string module functions.