On 17 Jul 2006 08:56:34 -0700, PTY <[EMAIL PROTECTED]> wrote: > Which is better? > > lst = [1,2,3,4,5] > > while lst: > lst.pop() > > OR > > while len(lst) > 0: > lst.pop()
How about:
lst = [1,2,3,4,5]
while lst:
lst.pop()
Or even just:
lst = []
;-)
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list
