summaryrefslogtreecommitdiffstats
path: root/Doc/library/dummy_threading.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/dummy_threading.rst')
-rw-r--r--Doc/library/dummy_threading.rst17
1 files changed, 6 insertions, 11 deletions
diff --git a/Doc/library/dummy_threading.rst b/Doc/library/dummy_threading.rst
index 30a3ebb..dfc3289 100644
--- a/Doc/library/dummy_threading.rst
+++ b/Doc/library/dummy_threading.rst
@@ -6,20 +6,15 @@
**Source code:** :source:`Lib/dummy_threading.py`
---------------
-
-This module provides a duplicate interface to the :mod:`threading` 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:`threading` instead.
-Suggested usage is::
+--------------
- try:
- import threading
- except ImportError:
- import dummy_threading as threading
+This module provides a duplicate interface to the :mod:`threading` 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
with blocking I/O.
-