Sitelet https://github.com/python/cpython/commit/491990777442e6d60e769923fcb331ffb1aa48da
Skip to content

Commit 4919907

Browse files
committed
Fix #25208: Improve "Develop with asyncio" doc page.
Patch by Benjamin Hodgson.
1 parent 0053c47 commit 4919907

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Doc/library/asyncio-dev.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ This page lists common traps and explains how to avoid them.
1414
Debug mode of asyncio
1515
---------------------
1616

17-
The implementation of :mod:`asyncio` module has been written for performances.
18-
To development with asyncio, it's required to enable the debug checks to ease
19-
the development of asynchronous code.
17+
The implementation of :mod:`asyncio` has been written for performance.
18+
In order to ease the development of asynchronous code, you may wish to
19+
enable *debug mode*.
2020

21-
Setup an application to enable all debug checks:
21+
To enable all debug checks for an application:
2222

2323
* Enable the asyncio debug mode globally by setting the environment variable
24-
:envvar:`PYTHONASYNCIODEBUG` to ``1``
24+
:envvar:`PYTHONASYNCIODEBUG` to ``1``, or by calling :meth:`BaseEventLoop.set_debug`.
2525
* Set the log level of the :ref:`asyncio logger <asyncio-logger>` to
2626
:py:data:`logging.DEBUG`. For example, call
2727
``logging.basicConfig(level=logging.DEBUG)`` at startup.

0 commit comments

Comments
 (0)