blob: dfc3289abb15c1550dc4e36bd9b7032873a01145 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001:mod:`dummy_threading` --- Drop-in replacement for the :mod:`threading` module
2==============================================================================
3
4.. module:: dummy_threading
5 :synopsis: Drop-in replacement for the threading module.
6
Raymond Hettinger469271d2011-01-27 20:38:46 +00007**Source code:** :source:`Lib/dummy_threading.py`
8
Antoine Pitroub43c4ca2017-09-18 22:04:20 +02009.. deprecated:: 3.7
10 Python now always has threading enabled. Please use :mod:`threading` instead.
11
Raymond Hettinger469271d2011-01-27 20:38:46 +000012--------------
Georg Brandl116aa622007-08-15 14:28:22 +000013
Antoine Pitroub43c4ca2017-09-18 22:04:20 +020014This module provides a duplicate interface to the :mod:`threading` module.
15It was meant to be imported when the :mod:`_thread` module was not provided
16on a platform.
Georg Brandl116aa622007-08-15 14:28:22 +000017
Georg Brandl2067bfd2008-05-25 13:05:15 +000018Be careful to not use this module where deadlock might occur from a thread being
19created that blocks waiting for another thread to be created. This often occurs
20with blocking I/O.