python needs leaning stuff from other language

Esmail ebonak at hotmail.com
Thu Apr 2 18:54:01 EDT 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