Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
48de2829
Commit
48de2829
authored
Aug 23, 2016
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#25916: fix a few 'string of bytes' references.
Patch by SilengGhost.
parent
efa798d1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/howto/unicode.rst
Doc/howto/unicode.rst
+1
-1
Doc/library/logging.config.rst
Doc/library/logging.config.rst
+1
-1
Doc/library/sunau.rst
Doc/library/sunau.rst
+1
-1
Doc/library/wave.rst
Doc/library/wave.rst
+1
-1
No files found.
Doc/howto/unicode.rst
View file @
48de2829
...
...
@@ -192,7 +192,7 @@ frequently used than UTF-8.) UTF-8 uses the following rules:
UTF-8 has several convenient properties:
1. It can handle any Unicode code point.
2. A Unicode string is turned into a s
tring
of bytes containing no embedded zero
2. A Unicode string is turned into a s
equence
of bytes 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.
...
...
Doc/library/logging.config.rst
View file @
48de2829
...
...
@@ -144,7 +144,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
(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 s
tring
of bytes preceded by a four-byte length
send it to the socket as a s
equence
of bytes preceded by a four-byte length
string packed in binary using ``struct.pack('
>
L
', n)``.
.. note::
...
...
Doc/library/sunau.rst
View file @
48de2829
...
...
@@ -158,7 +158,7 @@ AU_read objects, as returned by :func:`.open` above, have the following methods:
.. 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.
...
...
Doc/library/wave.rst
View file @
48de2829
...
...
@@ -112,7 +112,7 @@ Wave_read objects, as returned by :func:`.open`, have the following methods:
.. 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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment