• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1:mod:`_dummy_thread` --- Drop-in replacement for the :mod:`_thread` module
2==========================================================================
3
4.. module:: _dummy_thread
5   :synopsis: Drop-in replacement for the _thread module.
6
7**Source code:** :source:`Lib/_dummy_thread.py`
8
9.. deprecated:: 3.7
10   Python now always has threading enabled.  Please use :mod:`_thread`
11   (or, better, :mod:`threading`) instead.
12
13--------------
14
15This module provides a duplicate interface to the :mod:`_thread` module.
16It was meant to be imported when the :mod:`_thread` module was not provided
17on a platform.
18
19Be careful to not use this module where deadlock might occur from a thread being
20created that blocks waiting for another thread to be created.  This often occurs
21with blocking I/O.
22
23