(no subject)

Def P def-p at usa.net
Thu Feb 24 14:59:30 EST 2000


>Well, I think it's basically down to the fact that Python is designed
>not according to ivory-tower philosophical rules, but observation of
>what people do, and what can be done to make their lives easier.
>Besides, I don't think OO is *all* about mutation of state - that
>would leave functional OO languages like ocaml in rather an odd
>position.  Would you really rather write:
>
>newstr = str.copy()
>newstr.convert_to_upper_case()
>return func(newstr)
>
>than
>
>return func(str.upper())

I see your point, but I still don't understand the benefit of string methods
over oldfashioned string functions... (Especially not if some of them look so
unnatural like "".join(stringlist)... I suppose we will get to write
"\t".split("a b c") too? <wink>)

<-- Def P -->


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1




More information about the Python-list mailing list