On 24/03/2016 14:22, Matt Wheeler wrote:

The point is that one can just do `mylist.clear()`


Only in 3.3 and up. In Python 2.x you have to do it the old fashioned, long winded way.

mylist[:] = []

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to