[Zope-dev] reduce() doesn't work in Python Scripts

Romain Slootmaekers romain@zzict.com
Thu, 6 Dec 2001 16:12:46 +0100 (CET)


On Thu, 6 Dec 2001, Brad Clements wrote:

> In Zope 2.4.3 binary on Linux
> 
> import operator
> 
> reduce(operator.add,[0,1,2,3,4])
> 
try "_.reduce(....)"


> gives me Error Value: global name 'reduce' is not defined

this shkould be clear enough as a message.
zope can't find the reduce function.


> 
> Is this a faq?

probably.

have fun,

Sloot.