[Zope-Checkins] CVS: Packages/RestrictedPython - Guards.py:1.13

Evan Simpson cvs-admin at zope.org
Thu Nov 20 17:30:13 EST 2003


Update of /cvs-repository/Packages/RestrictedPython
In directory cvs.zope.org:/tmp/cvs-serv26534/lib/python/RestrictedPython

Modified Files:
	Guards.py 
Log Message:
Exposed Python 2.3 builtins 'sum', 'dict', and 'enumerate' to guarded code.


=== Packages/RestrictedPython/Guards.py 1.12 => 1.13 ===
--- Packages/RestrictedPython/Guards.py:1.12	Thu Nov  6 12:11:49 2003
+++ Packages/RestrictedPython/Guards.py	Thu Nov 20 17:30:12 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