mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
#9078: fix some Unicode C API descriptions, in comments and docs.
This commit is contained in:
parent
620c6c760d
commit
952867aa30
3 changed files with 11 additions and 11 deletions
|
@ -346,10 +346,10 @@ APIs:
|
|||
Coerce an encoded object *obj* to an Unicode object and return a reference with
|
||||
incremented refcount.
|
||||
|
||||
String and other char buffer compatible objects are decoded according to the
|
||||
given encoding and using the error handling defined by errors. Both can be
|
||||
*NULL* to have the interface use the default values (see the next section for
|
||||
details).
|
||||
:class:`bytes`, :class:`bytearray` and other char buffer compatible objects
|
||||
are decoded according to the given encoding and using the error handling
|
||||
defined by errors. Both can be *NULL* to have the interface use the default
|
||||
values (see the next section for details).
|
||||
|
||||
All other objects, including Unicode objects, cause a :exc:`TypeError` to be
|
||||
set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue