How to empty a list in Python?
Posted
by DrFalk3n
on Stack Overflow
See other posts from Stack Overflow
or by DrFalk3n
Published on 2009-09-09T16:08:21Z
Indexed on
2010/03/13
16:55 UTC
Read the original article
Hit count: 164
It seems so "dirty" emptying a list in this way:
while len(alist) > 0 : alist.pop()
Does a clear way exist to do that?
© Stack Overflow or respective owner