[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4 (asyncio doc)
victor.stinner
python-checkins at python.org
Fri Jan 30 01:39:10 CET 2015
https://hg.python.org/cpython/rev/582dd2ef9673
changeset: 94392:582dd2ef9673
parent: 94390:25c1d4aea1c1
parent: 94391:3c3f08e68c20
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jan 30 01:39:01 2015 +0100
summary:
Merge 3.4 (asyncio doc)
files:
Doc/library/asyncio-dev.rst | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -372,3 +372,14 @@
:ref:`Detect coroutine objects never scheduled <asyncio-coroutine-not-scheduled>`.
+
+Close transports
+----------------
+
+When a transport is no more needed, call its ``close()`` method to release
+resources.
+
+If a transport (or an event loop) is not closed explicitly, a
+:exc:`ResourceWarning` warning will be emitted in its destructor. The
+:exc:`ResourceWarning` warnings are hidden by default: use the ``-Wd`` command
+line option of Python to show them.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list