diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-05 20:26:10 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-12-05 20:26:10 (GMT) |
commit | 92bf919ed0da8d7f112f9659e6065976e382bae1 (patch) | |
tree | 1876e54c89f619563d8b4218bb7fa5f05eb86b0a /Doc/library/socket.rst | |
parent | 1a7b8d143965c281467379123187e0ef323380c3 (diff) | |
parent | b757c83ec626442a8804b9417790443bf13b4fc8 (diff) | |
download | cpython-92bf919ed0da8d7f112f9659e6065976e382bae1.zip cpython-92bf919ed0da8d7f112f9659e6065976e382bae1.tar.gz cpython-92bf919ed0da8d7f112f9659e6065976e382bae1.tar.bz2 |
Issue #22581: Use more "bytes-like object" throughout the docs and comments.
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 830e82d..e330f0a 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -1123,7 +1123,8 @@ to sockets. Send normal and ancillary data to the socket, gathering the non-ancillary data from a series of buffers and concatenating it into a single message. The *buffers* argument specifies the - non-ancillary data as an iterable of buffer-compatible objects + non-ancillary data as an iterable of + :term:`bytes-like objects <bytes-like object>` (e.g. :class:`bytes` objects); the operating system may set a limit (:func:`~os.sysconf` value ``SC_IOV_MAX``) on the number of buffers that can be used. The *ancdata* argument specifies the ancillary @@ -1131,7 +1132,7 @@ to sockets. ``(cmsg_level, cmsg_type, cmsg_data)``, where *cmsg_level* and *cmsg_type* are integers specifying the protocol level and protocol-specific type respectively, and *cmsg_data* is a - buffer-compatible object holding the associated data. Note that + bytes-like object holding the associated data. Note that some systems (in particular, systems without :func:`CMSG_SPACE`) might support sending only one control message per call. The *flags* argument defaults to 0 and has the same meaning as for |