On Wed, 2009-07-29 at 08:24 -0700, WilsonOfCanada wrote:
> I was wondering if there is any built-in function that clears the
> array.
The proper python term would be "list." You can remove all elements of
a list 'l' like so:
del l[:]
> I was also wondering if this works:
>
> arrMoo = ['3
WilsonOfCanada wrote:
> Hellos,
>
> I was wondering if there is any built-in function that clears the
> array. I was also wondering if this works:
>
> arrMoo = ['33', '342', '342']
> arrMoo = []
Most of the time, yes. Unless you have something like this, then it won't
work:
foo = [10]
Hellos,
I was wondering if there is any built-in function that clears the
array. I was also wondering if this works:
arrMoo = ['33', '342', '342']
arrMoo = []
--
http://mail.python.org/mailman/listinfo/python-list