python needs leaning stuff from other language

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

Diez B. Roggisch wrote:
> online.service at 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

some_list = []

be also acceptable (and pythonic?)?

More information about the Python-list mailing list