summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-05-04 22:07:42 (GMT)
committerGitHub <noreply@github.com>2023-05-04 22:07:42 (GMT)
commit7d35c3121ade679dd6e8b4a0bac7b3702aee6921 (patch)
tree85e22e1940226bf45e95e7dbe334e966c659f196 /Misc
parentf5c38382f9c40f0017cef086896a8160e313ac9e (diff)
downloadcpython-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.rst3
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`).