This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Comment/implementation disagreement in Thread._bootstrap_inner
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: python-dev, serhiy.storchaka, zach.ware
Priority: normal Keywords:

Created on 2016-05-09 16:26 by zach.ware, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg265208 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2016-05-09 16:26
The comment at Lib/threading.py:925 notes that sys.stderr should be used if possible, but the implementation uses self._stderr in spite of checking _sys.stderr is not None.  I believe this was just an oversight in 644b677c2ae5, which added the check and also switched from _sys.stderr.write(...) to print(... file=...).
msg265209 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-05-09 16:42
Good catch! Yes, this is just my mistake. Could you please fix this? I can't commit right now.
msg265212 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-09 19:50
New changeset 8842c02c02a2 by Zachary Ware in branch '3.5':
Issue #26987: Correct implementation to match comment
https://hg.python.org/cpython/rev/8842c02c02a2

New changeset 694dadd9f7bd by Zachary Ware in branch 'default':
Closes #26987: Merge with 3.5
https://hg.python.org/cpython/rev/694dadd9f7bd
History
Date User Action Args
2022-04-11 14:58:30adminsetgithub: 71174
2016-05-09 19:50:51python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg265212

resolution: fixed
stage: needs patch -> resolved
2016-05-09 16:42:38serhiy.storchakasetmessages: + msg265209
2016-05-09 16:26:28zach.warecreate