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

Fredrik Lundh fredrik@pythonware.com
Mon, 2 Dec 2002 16:01:14 +0100


brett wrote:

> those programs where deadlock would occur do not lose or gain anything
> since they couldn't run on a platform without ``thread`` anyway.

    try:
        import threading
    except ImportError:
        threading =3D None # use non-threaded behaviour

</F>