[Python-checkins] cpython (3.5): Document None as timeout for asyncio.timeout()

andrew.svetlov python-checkins at python.org
Tue Mar 29 02:39:32 EDT 2016


https://hg.python.org/cpython/rev/fabb5551c0c2
changeset: 100781:fabb5551c0c2
branch: 3.5
parent: 100779:566fe3564684
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Tue Mar 29 09:39:02 2016 +0300
summary:
 Document None as timeout for asyncio.timeout()
files:
 Doc/library/asyncio-task.rst | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -675,6 +675,8 @@
 :exc:`asyncio.TimeoutError` is raised outside of
 context manager scope.
 
+ Passing ``None`` as *timeout* argument disables the manager logic.
+
 .. coroutinefunction:: wait(futures, \*, loop=None, timeout=None,\
 return_when=ALL_COMPLETED)
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /