[issue31517] MainThread association logic is fragile
Tim Peters
report at bugs.python.org
Tue Sep 19 22:28:41 EDT 2017
Tim Peters added the comment:
Is there a problem here? I haven't heard of anyone even wondering about this before. threading.py worries about Threads created _by_ threading.py, plus the magical (from its point of view) thread that first imports threading.py. Users mix in `_thread` threads, or raw C threads from extension modules, essentially at their own risk. Which risks are minimal, but can have visible consequences.
I don't view that as being a real problem. It might help if, e.g., a Wiki somewhere spelled out the consequences under different Python implementations (while I don't know for sure, I _expect_ the current docs just say "in normal conditions, the main thread is the thread from which the Python interpreter was started" because it doesn't want to over-specify the behavior in an area nobody really cares about).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31517>
_______________________________________
More information about the Python-bugs-list
mailing list