[issue1720705] thread + import => crashes?

Nick Coghlan report at bugs.python.org
Sun Feb 24 08:50:22 CET 2008


Nick Coghlan added the comment:

Correction to previous comment: you can't safely perform imports from
daemon threads at all, as you have to set their daemon status before you
start them.

So, to be able to safely import from a thread other than the main thread:
- it must be created by the threading module, or otherwise guaranteed to
be terminated when the interpreter exits
- if created through the threading module, it must not be set to daemon mode

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1720705>
_____________________________________


More information about the Python-bugs-list mailing list