thread/queue bug

Antoon Pardon apardon at forel.vub.ac.be
Mon Dec 13 07:38:35 EST 2004


Op 2004-12-12, Tim Peters schreef <tim.peters at gmail.com>:
>
> I think you'd have to ask Brett (who did most of the work on
> dummy_thread and dummy_threading).  It doesn't really matter, though: 
> it's a general truth that starting a thread as a side effect of
> importing is a recipe for deadlock, and hacking specific methods and
> functions to avoid imports just moves the problem around.  It's not a
> goal that anything in the standard Python library cater to bad thread
> practice here (the bad thread practice being, again, starting a thread
> as a side effect of importing).

I don't see why starting a thread as a side effect of importing is
bad thread practice. Sure python doesn't cater for it, but IMO
that seems to be python failing.

-- 
Antoon Pardon



More information about the Python-list mailing list