summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-06-27 10:17:12 (GMT)
committerGeorg Brandl <georg@python.org>2010-06-27 10:17:12 (GMT)
commit952867aa306dda2a710df4c286b5d9f0593e3d34 (patch)
treef2524258ffd913fd36201c66050b2af37cdcf3b5 /Doc/c-api
parent620c6c760dd8e596b0c630fed736f2a958b09d4a (diff)
downloadcpython-952867aa306dda2a710df4c286b5d9f0593e3d34.zip
cpython-952867aa306dda2a710df4c286b5d9f0593e3d34.tar.gz
cpython-952867aa306dda2a710df4c286b5d9f0593e3d34.tar.bz2
#9078: fix some Unicode C API descriptions, in comments and docs.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/unicode.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index b5a9ab1..7334c09 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -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.