diff -r 128fa5eea9b1 Doc/howto/unicode.rst --- a/Doc/howto/unicode.rst Fri Dec 18 15:47:28 2015 -0500 +++ b/Doc/howto/unicode.rst Sun Dec 20 17:42:33 2015 +0100 @@ -192,7 +192,7 @@ UTF-8 has several convenient properties: 1. It can handle any Unicode code point. -2. A Unicode string is turned into a string of bytes containing no embedded zero +2. A Unicode string is turned into a :class:`bytes` object containing no embedded zero bytes. This avoids byte-ordering issues, and means UTF-8 strings can be processed by C functions such as ``strcpy()`` and sent through protocols that can't handle zero bytes. diff -r 128fa5eea9b1 Doc/library/logging.config.rst --- a/Doc/library/logging.config.rst Fri Dec 18 15:47:28 2015 -0500 +++ b/Doc/library/logging.config.rst Sun Dec 20 17:42:33 2015 +0100 @@ -145,7 +145,7 @@ (perhaps if decryption were performed). To send a configuration to the socket, read in the configuration file and - send it to the socket as a string of bytes preceded by a four-byte length + send it to the socket as a :class:`bytes` object preceded by a four-byte length string packed in binary using ``struct.pack('>L', n)``. .. note:: diff -r 128fa5eea9b1 Doc/library/sunau.rst --- a/Doc/library/sunau.rst Fri Dec 18 15:47:28 2015 -0500 +++ b/Doc/library/sunau.rst Sun Dec 20 17:42:33 2015 +0100 @@ -157,7 +157,7 @@ .. method:: AU_read.readframes(n) - Reads and returns at most *n* frames of audio, as a string of bytes. The data + Reads and returns at most *n* frames of audio, as a :class:`bytes` object. The data will be returned in linear format. If the original data is in u-LAW format, it will be converted. diff -r 128fa5eea9b1 Doc/library/wave.rst --- a/Doc/library/wave.rst Fri Dec 18 15:47:28 2015 -0500 +++ b/Doc/library/wave.rst Sun Dec 20 17:42:33 2015 +0100 @@ -111,7 +111,7 @@ .. method:: Wave_read.readframes(n) - Reads and returns at most *n* frames of audio, as a string of bytes. + Reads and returns at most *n* frames of audio, as a :class:`bytes` object. .. method:: Wave_read.rewind()