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

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


indeed. in 
lib/python/AccessControl/ZopeGuards.py

the guarded_reduce isn't there....

those who are are:
['cmp', 'round', 'AttributeError', 'random', 'str', 'range',
'ArithmeticError', 'whrandom', 'unichr', 'list', 'FloatingPointError',
'getattr', 'hasattr', 'setattr', 'IndexError', 'TypeError', 'delattr',
'AssertionError', 'divmod', 'ord', 'ZeroDivisionError', '__import__',
'callable', 'len', 'repr', 'max', 'tuple', 'StandardError', 'string',
'hash', 'isinstance', 'Exception', 'map', 'math', 'oct', 'OverflowError',
'IOError', 'test', 'filter', 'abs', 'chr', 'NameError', 'long', 'hex',
'complex', 'EOFError', 'min', 'reorder', 'OSError', 'same_type',
'RuntimeError', 'LookupError', 'apply', 'EnvironmentError', 'unicode',
'ValueError', 'issubclass', 'ImportError', 'None', 'KeyError', 'float',
'SyntaxError', 'pow', 'int', 'sequence', 'DateTime']

In retrospect, I should have posted only 1 message instead of 3 :)

Sloot.