Steven Bethard wrote: > > Of course, in this simple case, I wouldn't be likely to write the clear > function since the inline code is simpler and has less overhead: > > def main() > var1 = [] > var1.append('a') > var1[:] = []
Even less overhead: del var1[:] -- http://mail.python.org/mailman/listinfo/python-list