Skip to content

Commit

Permalink
Docs: improve accuracy of socketserver reference (python#24767)
Browse files Browse the repository at this point in the history
  • Loading branch information
geryogam committed Nov 29, 2022
1 parent d74a588 commit 052bc12
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Doc/library/socketserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ synchronous servers of four types::

Note that :class:`UnixDatagramServer` derives from :class:`UDPServer`, not from
:class:`UnixStreamServer` --- the only difference between an IP and a Unix
stream server is the address family, which is simply repeated in both Unix
server classes.
server is the address family.


.. class:: ForkingMixIn
Expand Down Expand Up @@ -431,11 +430,8 @@ Request Handler Objects
The :attr:`self.rfile` and :attr:`self.wfile` attributes can be
read or written, respectively, to get the request data or return data
to the client.

The :attr:`rfile` attributes of both classes support the
:class:`io.BufferedIOBase` readable interface, and
:attr:`DatagramRequestHandler.wfile` supports the
:class:`io.BufferedIOBase` writable interface.
The :attr:`!rfile` attributes support the :class:`io.BufferedIOBase` readable interface,
and :attr:`!wfile` attributes support the :class:`!io.BufferedIOBase` writable interface.

.. versionchanged:: 3.6
:attr:`StreamRequestHandler.wfile` also supports the
Expand Down

0 comments on commit 052bc12

Please sign in to comment.