Skip to content

[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) #136589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-136549: Fix signature of threading.excepthook() (GH-136559)
(cherry picked from commit be2c3d2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
serhiy-storchaka authored and miss-islington committed Jul 12, 2025
commit f46ed2a07d380bb15a0b6ed4a49b72c16e5a86d2
1 change: 1 addition & 0 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5916,6 +5916,7 @@ def test_sysconfig_module_has_signatures(self):
def test_threading_module_has_signatures(self):
import threading
self._test_module_has_signatures(threading)
self.assertIsNotNone(inspect.signature(threading.__excepthook__))

def test_thread_module_has_signatures(self):
import _thread
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix signature of :func:`threading.excepthook`.
2 changes: 1 addition & 1 deletion Modules/_threadmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ thread_excepthook(PyObject *module, PyObject *args)
}

PyDoc_STRVAR(excepthook_doc,
"_excepthook($module, (exc_type, exc_value, exc_traceback, thread), /)\n\
"_excepthook($module, args, /)\n\
--\n\
\n\
Handle uncaught Thread.run() exception.");
Expand Down
Loading