This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fix suggested usage of dummy_threading module
Type: Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, berker.peksag, docs@python, python-dev
Priority: normal Keywords: patch

Created on 2012-10-09 10:32 by berker.peksag, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix-dummy-threading-usage.diff berker.peksag, 2012-10-09 10:32 review
Messages (3)
msg172472 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2012-10-09 10:32
The suggested usage should be like this:

    try:
        import threading
    except ImportError:
        import dummy_threading as threading

See:
- http://hg.python.org/cpython/file/ce0d0d052494/Lib/queue.py#l3
- http://hg.python.org/cpython/file/ce0d0d052494/Lib/sched.py#l34
- http://hg.python.org/cpython/file/ce0d0d052494/Lib/socketserver.py#l137
msg172474 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-09 10:45
New changeset 7de9c620716e by Andrew Svetlov in branch '3.2':
Issue #16174: Fix suggested usage of dummy_threading module.
http://hg.python.org/cpython/rev/7de9c620716e

New changeset f02974773a71 by Andrew Svetlov in branch '3.3':
Merge issue #16174: Fix suggested usage of dummy_threading module.
http://hg.python.org/cpython/rev/f02974773a71

New changeset a93efd445982 by Andrew Svetlov in branch 'default':
Merge issue #16174: Fix suggested usage of dummy_threading module.
http://hg.python.org/cpython/rev/a93efd445982
msg172475 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-10-09 10:46
Fixed. Thanks, Berker.
History
Date User Action Args
2022-04-11 14:57:37adminsetgithub: 60378
2012-10-09 10:46:09asvetlovsetstatus: open -> closed

versions: + Python 3.2
nosy: + asvetlov

messages: + msg172475
resolution: fixed
stage: resolved
2012-10-09 10:45:20python-devsetnosy: + python-dev
messages: + msg172474
2012-10-09 10:32:30berker.peksagcreate