asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG

environment variable is set
This commit is contained in:
Victor Stinner 2014-06-23 00:12:14 +02:00
parent d6de5d8455
commit 7b7120e159
6 changed files with 11 additions and 14 deletions

View file

@ -585,7 +585,11 @@ Debug mode
.. method:: BaseEventLoop.get_debug()
Get the debug mode (:class:`bool`) of the event loop, ``False`` by default.
Get the debug mode (:class:`bool`) of the event loop.
The default value is ``True`` if the environment variable
:envvar:`PYTHONASYNCIODEBUG` is set to a non-empty string, ``False``
otherwise.
.. versionadded:: 3.4.2