#9078: fix some Unicode C API descriptions, in comments and docs.

This commit is contained in:
Georg Brandl 2010-06-27 10:17:12 +00:00
parent 620c6c760d
commit 952867aa30
3 changed files with 11 additions and 11 deletions

View file

@ -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.