@@ -393,7 +393,7 @@ APIs:
393
393
.. versionadded:: 3.3
394
394
395
395
396
- .. c:function:: PyObject* PyUnicode_FromKindAndData(int kind, const void *str , \
396
+ .. c:function:: PyObject* PyUnicode_FromKindAndData(int kind, const void *buffer , \
397
397
Py_ssize_t size)
398
398
399
399
Create a new Unicode object with the given *kind * (possible values are
@@ -622,7 +622,7 @@ APIs:
622
622
.. versionadded :: 3.3
623
623
624
624
625
- .. c :function :: PyObject* PyUnicode_Substring (PyObject *self , Py_ssize_t start, \
625
+ .. c :function :: PyObject* PyUnicode_Substring (PyObject *unicode , Py_ssize_t start, \
626
626
Py_ssize_t end)
627
627
628
628
Return a substring of *str *, from character index *start * (included) to
@@ -828,7 +828,7 @@ To encode and decode file names and other environment strings,
828
828
argument parsing, the ``"O&"`` converter should be used, passing
829
829
:c:func:`PyUnicode_FSConverter` as the conversion function:
830
830
831
- .. c:function:: int PyUnicode_FSConverter(PyObject* arg , void* addr )
831
+ .. c:function:: int PyUnicode_FSConverter(PyObject* obj , void* result )
832
832
833
833
ParseTuple converter: encode :class:`str` objects -- obtained directly or
834
834
through the :class:`os.PathLike` interface -- to :class:`bytes` using
@@ -845,7 +845,7 @@ To decode file names to :class:`str` during argument parsing, the ``"O&"``
845
845
converter should be used, passing :c:func: `PyUnicode_FSDecoder ` as the
846
846
conversion function:
847
847
848
- .. c :function :: int PyUnicode_FSDecoder (PyObject* arg , void* addr )
848
+ .. c :function :: int PyUnicode_FSDecoder (PyObject* obj , void* result )
849
849
850
850
ParseTuple converter: decode :class:`bytes` objects -- obtained either
851
851
directly or indirectly through the :class:`os.PathLike` interface -- to
0 commit comments