string methods (was Re: [Python-Dev] A house upon the sand)

Fredrik Lundh fredrik@effbot.org
Mon, 27 Nov 2000 02:30:10 +0100


Charles wrote:
> On the other hand it is not clear to me why "capwords" and "zfill" did
> not become methods of string objects. 

fwiw, they were both present in my original unicode
implementation:

>>> from unicode import unicode
>>> a = unicode("hello world")
>>> a.capwords()
'Hello World'
>>> a.zfill(20)
'000000000hello world'

</F>