summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-05-06 12:53:15 (GMT)
committerGitHub <noreply@github.com>2024-05-06 12:53:15 (GMT)
commit0085c3ae8f067abd4f6540d0f6dd2fb13107618e (patch)
tree02a0986dbc669ca6e6c53bf9fb567cfb25e95130 /Misc
parentd6fa1d4beef2bf9d83048469667e0ba5f2b41068 (diff)
downloadcpython-0085c3ae8f067abd4f6540d0f6dd2fb13107618e.zip
cpython-0085c3ae8f067abd4f6540d0f6dd2fb13107618e.tar.gz
cpython-0085c3ae8f067abd4f6540d0f6dd2fb13107618e.tar.bz2
gh-116871: Improve name suggestions in tracebacks (GH-116930)
Only include underscored names in name suggestions for AttributeError and ImportError if the original name was underscored.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-03-17-18-24-23.gh-issue-116871.9uSl8M.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-03-17-18-24-23.gh-issue-116871.9uSl8M.rst b/Misc/NEWS.d/next/Library/2024-03-17-18-24-23.gh-issue-116871.9uSl8M.rst
new file mode 100644
index 0000000..f3caa63
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-03-17-18-24-23.gh-issue-116871.9uSl8M.rst
@@ -0,0 +1,2 @@
+Name suggestions for :exc:`AttributeError` and :exc:`ImportError` now only
+include underscored names if the original name was underscored.