summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorWei-Hsiang (Matt) Wang <mattwang44@gmail.com>2024-08-30 11:34:09 (GMT)
committerGitHub <noreply@github.com>2024-08-30 11:34:09 (GMT)
commit103a0470e31d80d56097f57a27d97d7d2d3c9fbb (patch)
tree52f32100a42617bf120a8bdb8d3aa193dc35ae8d /Doc/library/inspect.rst
parent8aaf7525ab839c32966ee862363ad2543a721306 (diff)
downloadcpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.zip
cpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.tar.gz
cpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.tar.bz2
gh-123492: Remove unnecessary `:func:` parentheses (#123493)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 4107907..d19e779 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -1261,7 +1261,7 @@ Classes and functions
This function handles several details for you:
* If ``eval_str`` is true, values of type ``str`` will
- be un-stringized using :func:`eval()`. This is intended
+ be un-stringized using :func:`eval`. This is intended
for use with stringized annotations
(``from __future__ import annotations``).
* If ``obj`` doesn't have an annotations dict, returns an
@@ -1275,16 +1275,16 @@ Classes and functions
* Always, always, always returns a freshly created dict.
``eval_str`` controls whether or not values of type ``str`` are replaced
- with the result of calling :func:`eval()` on those values:
+ with the result of calling :func:`eval` on those values:
- * If eval_str is true, :func:`eval()` is called on values of type ``str``.
- (Note that ``get_annotations`` doesn't catch exceptions; if :func:`eval()`
+ * If eval_str is true, :func:`eval` is called on values of type ``str``.
+ (Note that ``get_annotations`` doesn't catch exceptions; if :func:`eval`
raises an exception, it will unwind the stack past the ``get_annotations``
call.)
* If eval_str is false (the default), values of type ``str`` are unchanged.
- ``globals`` and ``locals`` are passed in to :func:`eval()`; see the documentation
- for :func:`eval()` for more information. If ``globals`` or ``locals``
+ ``globals`` and ``locals`` are passed in to :func:`eval`; see the documentation
+ for :func:`eval` for more information. If ``globals`` or ``locals``
is ``None``, this function may replace that value with a context-specific
default, contingent on ``type(obj)``: