python needs leaning stuff from other language

Esmail ebonak at hotmail.com
Fri Apr 3 00:54:01 CEST 2009


Diez B. Roggisch wrote:
> online.service at ymail.com schrieb:
>> python's list needs a thing  list.clear()  like c# arraylist
>> and
> 
> some_list[:] = []

I agree that this is nice and clear, but as a relative newbie
wouldn't

some_list = []

be also acceptable (and pythonic?)?




More information about the Python-list mailing list