Skip to content

Commit f7165d4

Browse files
fix docstring of simple_eval
1 parent c16c2f2 commit f7165d4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bpython/simpleeval.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ def simple_eval(node_or_string, namespace=None):
3030
Safely evaluate an expression node or a string containing a Python
3131
expression. The string or node provided may only consist of:
3232
* the following Python literal structures: strings, numbers, tuples,
33-
lists, dicts, booleans, and None.
33+
lists, and dicts
3434
* variable names causing lookups in the passed in namespace or builtins
3535
* 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?)
3936
4037
The optional namespace dict-like ought not to cause side effects on lookup
4138
"""

0 commit comments

Comments
 (0)