summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index f9d29e89d..afde8cc60 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -1036,6 +1036,12 @@ def safe_eval(source):
Evaluate a string containing a Python literal expression without
allowing the execution of arbitrary non-literal code.
+ .. warning::
+
+ This function is identical to :py:meth:`ast.literal_eval` and
+ has the same security implications. It may not always be safe
+ to evaluate large input strings.
+
Parameters
----------
source : str