[Zope-dev] reduce() doesn't work in Python Scripts
Brad Clements
bkc@murkworks.com
Thu, 6 Dec 2001 10:28:11 -0500
On 6 Dec 2001 at 16:12, Romain Slootmaekers wrote:
> > reduce(operator.add,[0,1,2,3,4])
> >
> try "_.reduce(....)"
This is in a Python Script, I'm not using the DTML namespace.
Note that map() and filter() work without a problem, so why not reduce() ?
> this shkould be clear enough as a message.
> zope can't find the reduce function.
right, but it can find the other built-in functions okay.
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com AOL-IM: BKClements