You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comment/implementation disagreement in Thread._bootstrap_inner #71174
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=...).
Activity
zware commentedon May 9, 2016
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=...).
serhiy-storchaka commentedon May 9, 2016
Good catch! Yes, this is just my mistake. Could you please fix this? I can't commit right now.
python-dev commentedon May 9, 2016
New changeset 8842c02c02a2 by Zachary Ware in branch '3.5':
Issue bpo-26987: Correct implementation to match comment
https://hg.python.org/cpython/rev/8842c02c02a2
New changeset 694dadd9f7bd by Zachary Ware in branch 'default':
Closes bpo-26987: Merge with 3.5
https://hg.python.org/cpython/rev/694dadd9f7bd