| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c16c2f2 commit f7165d4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,12 +30,9 @@ def simple_eval(node_or_string, namespace=None): | |||
| 30 | 30 | Safely evaluate an expression node or a string containing a Python | |
| 31 | 31 | expression. The string or node provided may only consist of: | |
| 32 | 32 | * the following Python literal structures: strings, numbers, tuples, | |
| 33 | - lists, dicts, booleans, and None. | ||
| 33 | + lists, and dicts | ||
| 34 | 34 | * variable names causing lookups in the passed in namespace or builtins | |
| 35 | 35 | * getitem calls using the [] syntax on objects of the types above | |
| 36 | - * getitem calls on subclasses of the above types if they do not override | ||
| 37 | - the __getitem__ method and do not override __getattr__ or __getattribute__ | ||
| 38 | - (or maybe we'll try to clean those up?) | ||
| 39 | 36 | ||
| 40 | 37 | The optional namespace dict-like ought not to cause side effects on lookup | |
| 41 | 38 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments