File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1067,7 +1067,7 @@ Built-in Codecs
10671067Python provides a set of built-in codecs which are written in C for speed. All of
10681068these codecs are directly usable via the following functions.
10691069
1070- Many of the following APIs take two arguments encoding and errors, and they
1070+ Many of the following APIs take two arguments, encoding and errors, and they
10711071have the same semantics as the ones of the built-in :func:`str` string object
10721072constructor.
10731073
@@ -1668,9 +1668,9 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
16681668
16691669.. c :function :: int PyUnicode_EqualToUTF8AndSize (PyObject *unicode, const char *string, Py_ssize_t size)
16701670
1671- Compare a Unicode object with a char buffer which is interpreted as
1672- being UTF-8 or ASCII encoded and return true (``1 ``) if they are equal,
1673- or false (``0 ``) otherwise.
1671+ Compare a Unicode object, * unicode *, with a char buffer * string * of length * size *,
1672+ which is interpreted as being UTF-8 or ASCII encoded and return true (``1 ``) if they
1673+ are equal, or false (``0 ``) otherwise.
16741674 If the Unicode object contains surrogate code points
16751675 (``U+D800 `` - ``U+DFFF ``) or the C string is not valid UTF-8,
16761676 false (``0 ``) is returned.
You can’t perform that action at this time.
0 commit comments