@@ -22,14 +22,14 @@ in the Unicode object. The :c:type:`Py_UNICODE*` representation is deprecated
2222and inefficient; it should be avoided in performance- or memory-sensitive
2323situations.
2424
25- Due to the transition between the old APIs and the new APIs, unicode objects
25+ Due to the transition between the old APIs and the new APIs, Unicode objects
2626can internally be in two states depending on how they were created:
2727
28- * "canonical" unicode objects are all objects created by a non-deprecated
29- unicode API. They use the most efficient representation allowed by the
28+ * "canonical" Unicode objects are all objects created by a non-deprecated
29+ Unicode API. They use the most efficient representation allowed by the
3030 implementation.
3131
32- * "legacy" unicode objects have been created through one of the deprecated
32+ * "legacy" Unicode objects have been created through one of the deprecated
3333 APIs (typically :c:func: `PyUnicode_FromUnicode `) and only bear the
3434 :c:type: `Py_UNICODE* ` representation; you will have to call
3535 :c:func: `PyUnicode_READY ` on them before calling any other API.
@@ -152,7 +152,7 @@ access internal read-only data of Unicode objects:
152152
153153.. c:function:: void* PyUnicode_DATA(PyObject *o)
154154
155- Return a void pointer to the raw unicode buffer. *o * has to be a Unicode
155+ Return a void pointer to the raw Unicode buffer. *o * has to be a Unicode
156156 object in the "canonical" representation (not checked).
157157
158158 .. versionadded:: 3.3
@@ -430,7 +430,7 @@ APIs:
430430.. c :function :: PyObject* PyUnicode_FromFormat (const char *format, ...)
431431
432432 Take a C :c:func: `printf `\ -style *format * string and a variable number of
433- arguments, calculate the size of the resulting Python unicode string and return
433+ arguments, calculate the size of the resulting Python Unicode string and return
434434 a string with the values formatted into it. The variable arguments must be C
435435 types and must correspond exactly to the format characters in the *format *
436436 ASCII-encoded string. The following format characters are allowed:
@@ -504,9 +504,9 @@ APIs:
504504 | :attr: `%A ` | PyObject\* | The result of calling |
505505 | | | :func: `ascii `. |
506506 +-------------------+---------------------+--------------------------------+
507- | :attr: `%U ` | PyObject\* | A unicode object. |
507+ | :attr: `%U ` | PyObject\* | A Unicode object. |
508508 +-------------------+---------------------+--------------------------------+
509- | :attr: `%V ` | PyObject\* , | A unicode object (which may be |
509+ | :attr: `%V ` | PyObject\* , | A Unicode object (which may be |
510510 | | const char\* | *NULL *) and a null-terminated |
511511 | | | C character array as a second |
512512 | | | parameter (which will be used, |
@@ -1670,7 +1670,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
16701670
16711671.. c :function :: int PyUnicode_CompareWithASCIIString (PyObject *uni, const char *string)
16721672
1673- Compare a unicode object, *uni *, with *string * and return ``-1 ``, ``0 ``, ``1 `` for less
1673+ Compare a Unicode object, *uni *, with *string * and return ``-1 ``, ``0 ``, ``1 `` for less
16741674 than, equal, and greater than, respectively. It is best to pass only
16751675 ASCII-encoded strings, but the function interprets the input string as
16761676 ISO-8859-1 if it contains non-ASCII characters.
@@ -1680,7 +1680,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
16801680
16811681.. c :function :: PyObject* PyUnicode_RichCompare (PyObject *left, PyObject *right, int op)
16821682
1683- Rich compare two unicode strings and return one of the following:
1683+ Rich compare two Unicode strings and return one of the following:
16841684
16851685 * ``NULL `` in case an exception was raised
16861686 * :const: `Py_True ` or :const: `Py_False ` for successful comparisons
@@ -1708,7 +1708,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
17081708.. c :function :: void PyUnicode_InternInPlace (PyObject **string)
17091709
17101710 Intern the argument *\* string * in place. The argument must be the address of a
1711- pointer variable pointing to a Python unicode string object. If there is an
1711+ pointer variable pointing to a Python Unicode string object. If there is an
17121712 existing interned string that is the same as *\* string *, it sets *\* string * to
17131713 it (decrementing the reference count of the old string object and incrementing
17141714 the reference count of the interned string object), otherwise it leaves
@@ -1721,6 +1721,6 @@ They all return *NULL* or ``-1`` if an exception occurs.
17211721.. c:function:: PyObject* PyUnicode_InternFromString(const char *v)
17221722
17231723 A combination of :c:func: `PyUnicode_FromString ` and
1724- :c:func: `PyUnicode_InternInPlace `, returning either a new unicode string
1724+ :c:func: `PyUnicode_InternInPlace `, returning either a new Unicode string
17251725 object that has been interned, or a new ("owned") reference to an earlier
17261726 interned string object with the same value.
0 commit comments