summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/base_events.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-11-07 16:23:29 (GMT)
committerGitHub <noreply@github.com>2017-11-07 16:23:29 (GMT)
commit921e9432a1461bbf312c9c6dcc2b916be6c05fa0 (patch)
treefe7133dd95ad4d039de908df4af3bc71ef1f0bc8 /Lib/asyncio/base_events.py
parent1e5d54cfa031f1de9ee2d2e968e0551b6e2397b7 (diff)
downloadcpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.zip
cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.gz
cpython-921e9432a1461bbf312c9c6dcc2b916be6c05fa0.tar.bz2
bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314)
* bpo-31970: Reduce performance overhead of asyncio debug mode.
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r--Lib/asyncio/base_events.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 2a5a4f9..b94856c 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -1223,6 +1223,11 @@ class BaseEventLoop(events.AbstractEventLoop):
handler is set, and can be called by a custom exception
handler that wants to defer to the default behavior.
+ This default handler logs the error message and other
+ context-dependent information. In debug mode, a truncated
+ stack trace is also appended showing where the given object
+ (e.g. a handle or future or task) was created, if any.
+
The context parameter has the same meaning as in
`call_exception_handler()`.
"""