-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Policies & builtins | ||
------------------- | ||
|
||
|
||
|
||
Also RestrictedPython provides a way to define Policies, by redefining restricted versions of ``print``, ``getattr``, ``setattr``, ``import``, etc.. | ||
As shortcutes it offers three stripped down versions of Pythons ``__builtins__``: | ||
|
||
* ``safe_builtins`` (by Guards.py) | ||
* ``limited_builtins`` (by Limits.py), which provides restriced sequence types | ||
* ``utilities_builtins`` (by Utilities.py), which provides access for standard modules math, random, string and for sets. | ||
|
||
There is also a guard function for making attributes immutable --> ``full_write_guard`` (write and delete protected) |