17.8.dummy_threading — Drop-in replacement for thethreading module¶
Source code:Lib/dummy_threading.py
This module provides a duplicate interface to thethreading module. Itis meant to be imported when the_thread module is not provided on aplatform.
Suggested usage is:
try:importthreadingexceptImportError:importdummy_threadingasthreading
Be careful to not use this module where deadlock might occur from a thread beingcreated that blocks waiting for another thread to be created. This often occurswith blocking I/O.
