Oops. Need to check not only that HAVE_DECL_ISINF is defined, but also
[python.git] / Doc / library / dummy_threading.rst
blob0ffb68732fd0efd5dbacc7c2c9ebc869cc75b60c
2 :mod:`dummy_threading` --- Drop-in replacement for the :mod:`threading` module
3 ==============================================================================
5 .. module:: dummy_threading
6    :synopsis: Drop-in replacement for the threading module.
9 This module provides a duplicate interface to the :mod:`threading` module.  It
10 is meant to be imported when the :mod:`thread` module is not provided on a
11 platform.
13 Suggested usage is::
15    try:
16        import threading as _threading
17    except ImportError:
18        import dummy_threading as _threading
20 Be careful to not use this module where deadlock might occur from a thread
21 being created that blocks waiting for another thread to be created.  This  often
22 occurs with blocking I/O.