Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 182f1c8

Browse files
committed
bpo-18697: Implement review changes to docs
1 parent 2e81c7e commit 182f1c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/unicode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ APIs:
393393
.. versionadded:: 3.3
394394
395395
396-
.. c:function:: PyObject* PyUnicode_FromKindAndData(int kind, const void *str, \
396+
.. c:function:: PyObject* PyUnicode_FromKindAndData(int kind, const void *buffer, \
397397
Py_ssize_t size)
398398
399399
Create a new Unicode object with the given *kind* (possible values are
@@ -622,7 +622,7 @@ APIs:
622622
.. versionadded:: 3.3
623623
624624
625-
.. c:function:: PyObject* PyUnicode_Substring(PyObject *self, Py_ssize_t start, \
625+
.. c:function:: PyObject* PyUnicode_Substring(PyObject *unicode, Py_ssize_t start, \
626626
Py_ssize_t end)
627627
628628
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,
828828
argument parsing, the ``"O&"`` converter should be used, passing
829829
:c:func:`PyUnicode_FSConverter` as the conversion function:
830830
831-
.. c:function:: int PyUnicode_FSConverter(PyObject* arg, void* addr)
831+
.. c:function:: int PyUnicode_FSConverter(PyObject* obj, void* result)
832832
833833
ParseTuple converter: encode :class:`str` objects -- obtained directly or
834834
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&"``
845845
converter should be used, passing :c:func:`PyUnicode_FSDecoder` as the
846846
conversion function:
847847
848-
.. c:function:: int PyUnicode_FSDecoder(PyObject* arg, void* addr)
848+
.. c:function:: int PyUnicode_FSDecoder(PyObject* obj, void* result)
849849
850850
ParseTuple converter: decode :class:`bytes` objects -- obtained either
851851
directly or indirectly through the :class:`os.PathLike` interface -- to

0 commit comments

Comments
 (0)