New submission from Berker Peksag:

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

----------
assignee: docs@python
components: Documentation
files: fix-dummy-threading-usage.diff
keywords: patch
messages: 172472
nosy: berker.peksag, docs@python
priority: normal
severity: normal
status: open
title: Fix suggested usage of dummy_threading module
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27505/fix-dummy-threading-usage.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16174>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to