[New-bugs-announce] [issue22423] Errors in printing exceptions raised in a thread

Serhiy Storchaka report at bugs.python.org
Tue Sep 16 10:37:10 CEST 2014

New submission from Serhiy Storchaka:

Proposed patch fixes some bugs in printing exceptions in the threading module.

1. Fixed names of private variables in initialization. This caused unhandled AttributeError. The regression was introduced in changeset e71c3223810f. This part of the patch shouldn't be applied to 2.7.

2. Handled the case when sys.stderr is None. Perhaps this caused a crash when Python program run with pythonw.exe.

3. Added missed test.

components: Library (Lib)
files: threading_print_exception.patch
keywords: patch
messages: 226944
nosy: pitrou, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: patch review
status: open
title: Errors in printing exceptions raised in a thread
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36629/threading_print_exception.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list