[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

Jan-Philip Gehrcke report at bugs.python.org
Mon Feb 2 19:38:57 CET 2015


Jan-Philip Gehrcke added the comment:

For Python 2.7, we will not change behavior, even if unexpected. Instead, the sys.exit-docs should be adjusted and 

    - warn about the fact that nothing is written to stderr
      if sys.exit(msg) gets called from a non-primary thread, and

    - note that SystemExit raised in a non-primary thread lets the
      thread exit silently.

I have attached a corresponding patch, please review my wording!

----------
keywords: +patch
Added file: http://bugs.python.org/file37983/issue6634_py27.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6634>
_______________________________________


More information about the Python-bugs-list mailing list