On Mon, 17 Jul 2006 17:09:32 +0100 in comp.lang.python, "Simon Brunning" <[EMAIL PROTECTED]> 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.
--
http://mail.python.org/mailman/listinfo/python-list
