"lallous" <[email protected]> wrote in message news:[email protected]... > Hello > > What is faster when clearing a list? > > del L[:] > > or > > L = [] >
Oh, "L = []" definitely, on the basis that there are fewer characters to type. http://docs.python.org/3.1/library/profile.html -- Geoff -- http://mail.python.org/mailman/listinfo/python-list
