[Zope] array won't clear

Dieter Maurer dieter@handshake.de
Wed, 8 Jan 2003 22:41:15 +0100


michael.ta=F1ag wrote at 2003-1-8 02:39 -0800:
 > OK. I tried this to get the files in my directory into an array (even
 > those in the subdirectory). I got the file objects into the array, but
 > i can't seem to clear the array afterwards. so everytime i run the dtm=
l
 > method, the array keeps appending.=20
What you call an "array" is usually called a "list".

You clear a list with "del list[:]" or you assign a new
empty list with "results=3D []".


Dieter