Skip to content

Commit 5c53223

Browse files
committed
PYTHON-980 - Document deprecation of the eval command
1 parent 164cc34 commit 5c53223

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymongo/database.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,9 @@ def eval(self, code, *args):
10371037
evaluated
10381038
- `args` (optional): additional positional arguments are
10391039
passed to the `code` being evaluated
1040+
1041+
.. warning:: the eval command is deprecated in MongoDB 3.0 and
1042+
will be removed in a future server version.
10401043
"""
10411044
if not isinstance(code, Code):
10421045
code = Code(code)

0 commit comments

Comments
 (0)