newbie questions

John Machin sjmachin at lexicon.net
Sat Dec 11 16:09:32 EST 2004


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[:]




More information about the Python-list mailing list