[Zope-Checkins] CVS: Packages/RestrictedPython - Guards.py:1.9.2.4
Evan Simpson
cvs-admin at zope.org
Thu Nov 20 17:28:51 EST 2003
Update of /cvs-repository/Packages/RestrictedPython
In directory cvs.zope.org:/tmp/cvs-serv26348/lib/python/RestrictedPython
Modified Files:
Tag: Zope-2_7-branch
Guards.py
Log Message:
Python 2.3 builtins 'sum', 'dict', and 'enumerate' exposed to guarded code.
=== Packages/RestrictedPython/Guards.py 1.9.2.3 => 1.9.2.4 ===
--- Packages/RestrictedPython/Guards.py:1.9.2.3 Thu Nov 6 10:47:17 2003
+++ Packages/RestrictedPython/Guards.py Thu Nov 20 17:28:51 2003
@@ -22,7 +22,8 @@
'len', 'max', 'min', 'oct', 'ord', 'round', 'str', 'pow',
'apply', 'callable', 'cmp', 'complex', 'isinstance',
'issubclass', 'long', 'repr', 'range', 'list', 'tuple',
- 'unichr', 'unicode', 'True', 'False', 'bool',):
+ 'unichr', 'unicode', 'True', 'False', 'bool',
+ 'dict', 'sum', 'enumerate',):
safe_builtins[name] = __builtins__[name]
for name in dir(exceptions):
More information about the Zope-Checkins
mailing list