Przyszłość modułu string

Waldemar Osuch osuchw at ecn.ab.ca
Sun Sep 5 20:38:19 EDT 2004


I think you meant to send the message to pl.comp.lang.python but
I will try to answer it anyway.

Nie sadze ze wielu ludzi na comp.lang.python zrozumialo o co sie
pytasz :-).

JZ wrote:
> zastanawia mnie w jaki sposób ominąć 
> korzystanie z tego modułu podczas korzystania z map():
> 
> from string import upper
> low = ['a', 'b', 'c']
> high = map(upper, low)

Mozna tak:

low = ['a','b','c']
map(str.upper, low)
['A', 'B', 'C']

waldek



More information about the Python-list mailing list