Re: Coding style



On Mon, 17 Jul 2006 17:09:32 +0100 in comp.lang.python, "Simon
Brunning" <simon@xxxxxxxxxxxxxxxxxx> wrote:

[...]

lst = [1,2,3,4,5]
while lst:
lst.pop()

Or even just:

lst = []


del lst[:]

is probably closer to what the OP wants...

Regards,
-=Dave

--
Change is inevitable, progress is not.
.