]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-91635: clarify docs about closing of transport in asyncio (GH-98563)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Oct 2022 18:01:37 +0000 (11:01 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Oct 2022 18:01:37 +0000 (11:01 -0700)
(cherry picked from commit 2fdcc6f2cb5e3e1e09b8dff179f4c11193799998)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Doc/library/asyncio-protocol.rst

index 969354ceb163b5883e2f01fd8fd70427e5a9ab63..7bc906eaafc1f26f228b80c81f0a9ceff48ada4d 100644 (file)
@@ -156,7 +156,8 @@ Base Transport
    will be received.  After all buffered data is flushed, the
    protocol's :meth:`protocol.connection_lost()
    <BaseProtocol.connection_lost>` method will be called with
-   :const:`None` as its argument.
+   :const:`None` as its argument. The transport should not be
+   used once it is closed.
 
 .. method:: BaseTransport.is_closing()