Why does Python mix OO concepts and non OO concepts for operation s on basic types?

John La Rooy larooy at xtar.co.nz
Thu Jun 13 03:50:38 EDT 2002


On Tue, 11 Jun 2002 22:28:44 +0200
holger krekel <pyth at devel.trillke.net> wrote:

> Roman Suzi wrote:
> > I only forgot how will I do this:
> > 
> > map(string.split, s)
> > 
> > if GvR will deprecate string module...
> 
> what about
> 
>     map(str.split, s) 
> 
> :-) holger
> 
> 
what about 

map(string.capwords, s)

I'm guessing it's an oversight that there is no str.capwords??

John ;oP



More information about the Python-list mailing list