bpo-40057: Document some class attributes not mentioned in socketserver doc

This commit is contained in:
OverMighty 2020-03-24 22:10:47 +01:00
parent 15e5024d04
commit 6caa27bb42
1 changed files with 8 additions and 0 deletions

View File

@ -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.