[Zope] first-variables in a simple loop on a list

nwingfield at che-llp.com nwingfield at che-llp.com
Wed Sep 24 12:34:09 EDT 2003


To create a unique list, you could create and call a simple Python script,
something like this:

# ASSUMING A PARAMETER CALLED 'mylist'
mydict = {}
for value in mylist:
    mydict[value] = 1
mylist = mydict.keys()
return mylist


More information about the Zope mailing list