summaryrefslogtreecommitdiffstats
path: root/Doc/library/_dummy_thread.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/_dummy_thread.rst')
-rw-r--r--Doc/library/_dummy_thread.rst17
1 files changed, 7 insertions, 10 deletions
diff --git a/Doc/library/_dummy_thread.rst b/Doc/library/_dummy_thread.rst
index ebce74d..7dccbc5 100644
--- a/Doc/library/_dummy_thread.rst
+++ b/Doc/library/_dummy_thread.rst
@@ -6,18 +6,15 @@
**Source code:** :source:`Lib/_dummy_thread.py`
---------------
-
-This module provides a duplicate interface to the :mod:`_thread` module. It is
-meant to be imported when the :mod:`_thread` module is not provided on a
-platform.
+.. deprecated:: 3.7
+ Python now always has threading enabled. Please use :mod:`_thread`
+ (or, better, :mod:`threading`) instead.
-Suggested usage is::
+--------------
- try:
- import _thread
- except ImportError:
- import _dummy_thread as _thread
+This module provides a duplicate interface to the :mod:`_thread` module.
+It was meant to be imported when the :mod:`_thread` module was not provided
+on a platform.
Be careful to not use this module where deadlock might occur from a thread being
created that blocks waiting for another thread to be created. This often occurs