Kaydet (Commit) 1c99e529 authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Merge 3.4 -> 3.5

...@@ -14,14 +14,14 @@ This page lists common traps and explains how to avoid them. ...@@ -14,14 +14,14 @@ This page lists common traps and explains how to avoid them.
Debug mode of asyncio Debug mode of asyncio
--------------------- ---------------------
The implementation of :mod:`asyncio` module has been written for performances. The implementation of :mod:`asyncio` has been written for performance.
To development with asyncio, it's required to enable the debug checks to ease In order to ease the development of asynchronous code, you may wish to
the development of asynchronous code. 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 * 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 * Set the log level of the :ref:`asyncio logger <asyncio-logger>` to
:py:data:`logging.DEBUG`. For example, call :py:data:`logging.DEBUG`. For example, call
``logging.basicConfig(level=logging.DEBUG)`` at startup. ``logging.basicConfig(level=logging.DEBUG)`` at startup.
......
...@@ -590,6 +590,7 @@ Richie Hindle ...@@ -590,6 +590,7 @@ Richie Hindle
Konrad Hinsen Konrad Hinsen
David Hobley David Hobley
Tim Hochberg Tim Hochberg
Benjamin Hodgson
Joerg-Cyril Hoehle Joerg-Cyril Hoehle
Gregor Hoffleit Gregor Hoffleit
Chris Hoffman Chris Hoffman
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment