[Python-Dev] Can someone look at dummy_thread (#622537)?

Fredrik Lundh fredrik@pythonware.com
Tue, 3 Dec 2002 12:34:21 +0100


guido wrote:


> >     try:
> >         import threading
> >     except ImportError:
> >         threading =3D None # use non-threaded behaviour
>=20
> But then you'd have to sprinkle the rest of the code with
> "if threading is not None" tests.  Brett's dummy_thread is an attempt
> to reduce this clutter.

the problem (if there is one) is that the proposed integration may
break code that uses the above pattern.

deadlocks doesn't always happen when you want them to, so it
may not be obvious to developers and testers that their program
isn't as reliable as it was before the upgrade.

</F>