Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 1 | :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 Hettinger | 469271d | 2011-01-27 20:38:46 +0000 | [diff] [blame] | 7 | **Source code:** :source:`Lib/dummy_threading.py` |
| 8 | |
Antoine Pitrou | b43c4ca | 2017-09-18 22:04:20 +0200 | [diff] [blame] | 9 | .. deprecated:: 3.7 |
| 10 | Python now always has threading enabled. Please use :mod:`threading` instead. |
| 11 | |
Raymond Hettinger | 469271d | 2011-01-27 20:38:46 +0000 | [diff] [blame] | 12 | -------------- |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 13 | |
Antoine Pitrou | b43c4ca | 2017-09-18 22:04:20 +0200 | [diff] [blame] | 14 | This module provides a duplicate interface to the :mod:`threading` module. |
| 15 | It was meant to be imported when the :mod:`_thread` module was not provided |
| 16 | on a platform. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 17 | |
Georg Brandl | 2067bfd | 2008-05-25 13:05:15 +0000 | [diff] [blame] | 18 | Be careful to not use this module where deadlock might occur from a thread being |
| 19 | created that blocks waiting for another thread to be created. This often occurs |
| 20 | with blocking I/O. |