From 6caa27bb4250eb3e583f80001e5a552f109e024f Mon Sep 17 00:00:00 2001 From: OverMighty Date: Tue, 24 Mar 2020 22:10:47 +0100 Subject: [PATCH] bpo-40057: Document some class attributes not mentioned in socketserver doc --- Doc/library/socketserver.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index 232c0616d92..48d6e865ea7 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -436,6 +436,14 @@ Request Handler Objects :attr:`DatagramRequestHandler.wfile` supports the :class:`io.BufferedIOBase` writable interface. + The :class:`StreamRequestHandler` class also provides the + :attr:`self.connection` attribute which is set to :attr:`self.request`, thus + acting as an alias for that attribute. + + The :class:`DatagramRequestHandler` class also provides the + :attr:`self.packet` and :attr:`self.socket` attributes into which it unpacks + the :attr:`self.request` attribute. + .. versionchanged:: 3.6 :attr:`StreamRequestHandler.wfile` also supports the :class:`io.BufferedIOBase` writable interface.