[Python-checkins] cpython (3.4): Fix #25208: Improve "Develop with asyncio" doc page.

andrew.svetlov python-checkins at python.org
Thu Sep 24 13:34:27 CEST 2015


https://hg.python.org/cpython/rev/3909d29d29fc
changeset:   98243:3909d29d29fc
branch:      3.4
parent:      98240:ca6c9cc77c20
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Thu Sep 24 14:32:39 2015 +0300
summary:
  Fix #25208: Improve "Develop with asyncio" doc page.

Patch by Benjamin Hodgson.

files:
  Doc/library/asyncio-dev.rst |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -14,14 +14,14 @@
 Debug mode of asyncio
 ---------------------
 
-The implementation of :mod:`asyncio` module has been written for performances.
-To development with asyncio, it's required to enable the debug checks to ease
-the development of asynchronous code.
+The implementation of :mod:`asyncio` has been written for performance.
+In order to ease the development of asynchronous code, you may wish to
+enable *debug mode*.
 
-Setup an application to enable all debug checks:
+To enable all debug checks for an application:
 
 * Enable the asyncio debug mode globally by setting the environment variable
-  :envvar:`PYTHONASYNCIODEBUG` to ``1``
+  :envvar:`PYTHONASYNCIODEBUG` to ``1``, or by calling :meth:`BaseEventLoop.set_debug`.
 * Set the log level of the :ref:`asyncio logger <asyncio-logger>` to
   :py:data:`logging.DEBUG`. For example, call
   ``logging.basicConfig(level=logging.DEBUG)`` at startup.

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list