mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
gh-103883: Doc: Move PyUnicode_FromObject doc (#103913)
This API is one of Unicode creator APIs.
This commit is contained in:
parent
1d99e9e46e
commit
ce2383ec66
1 changed files with 9 additions and 9 deletions
|
|
@ -509,6 +509,15 @@ APIs:
|
||||||
arguments.
|
arguments.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:function:: PyObject* PyUnicode_FromObject(PyObject *obj)
|
||||||
|
|
||||||
|
Copy an instance of a Unicode subtype to a new true Unicode object if
|
||||||
|
necessary. If *obj* is already a true Unicode object (not a subtype),
|
||||||
|
return the reference with incremented refcount.
|
||||||
|
|
||||||
|
Objects other than Unicode or its subtypes will cause a :exc:`TypeError`.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, \
|
.. c:function:: PyObject* PyUnicode_FromEncodedObject(PyObject *obj, \
|
||||||
const char *encoding, const char *errors)
|
const char *encoding, const char *errors)
|
||||||
|
|
||||||
|
|
@ -616,15 +625,6 @@ APIs:
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* PyUnicode_FromObject(PyObject *obj)
|
|
||||||
|
|
||||||
Copy an instance of a Unicode subtype to a new true Unicode object if
|
|
||||||
necessary. If *obj* is already a true Unicode object (not a subtype),
|
|
||||||
return the reference with incremented refcount.
|
|
||||||
|
|
||||||
Objects other than Unicode or its subtypes will cause a :exc:`TypeError`.
|
|
||||||
|
|
||||||
|
|
||||||
Locale Encoding
|
Locale Encoding
|
||||||
"""""""""""""""
|
"""""""""""""""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue