diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-05-04 22:07:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 22:07:42 (GMT) |
commit | 7d35c3121ade679dd6e8b4a0bac7b3702aee6921 (patch) | |
tree | 85e22e1940226bf45e95e7dbe334e966c659f196 /Misc | |
parent | f5c38382f9c40f0017cef086896a8160e313ac9e (diff) | |
download | cpython-7d35c3121ade679dd6e8b4a0bac7b3702aee6921.zip cpython-7d35c3121ade679dd6e8b4a0bac7b3702aee6921.tar.gz cpython-7d35c3121ade679dd6e8b4a0bac7b3702aee6921.tar.bz2 |
GH-103899: Provide a hint when accidentally calling a module (GH-103900)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-04-26-15-14-23.gh-issue-103899.1pqKPF.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-04-26-15-14-23.gh-issue-103899.1pqKPF.rst b/Misc/NEWS.d/next/Core and Builtins/2023-04-26-15-14-23.gh-issue-103899.1pqKPF.rst new file mode 100644 index 0000000..c12a6b9 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-04-26-15-14-23.gh-issue-103899.1pqKPF.rst @@ -0,0 +1,3 @@ +Provide a helpful hint in the :exc:`TypeError` message when accidentally +calling a :term:`module` object that has a callable attribute of the same +name (such as :func:`dis.dis` or :class:`datetime.datetime`). |