diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 18:29:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 18:29:26 (GMT) |
commit | cc164232aa736006d3c45ee76680c14738e2f9e6 (patch) | |
tree | 27c809a3a3d19db5b822b1178184d09cca1e5eca /Doc/c-api/unicode.rst | |
parent | 63b5b6fd450260a4239371e96263020587648ad9 (diff) | |
download | cpython-cc164232aa736006d3c45ee76680c14738e2f9e6.zip cpython-cc164232aa736006d3c45ee76680c14738e2f9e6.tar.gz cpython-cc164232aa736006d3c45ee76680c14738e2f9e6.tar.bz2 |
Issue #28295: Fixed the documentation and added tests for PyUnicode_AsUCS4().
Original patch by Xiang Zhang.
Diffstat (limited to 'Doc/c-api/unicode.rst')
-rw-r--r-- | Doc/c-api/unicode.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index a0672ca..261a43c 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -641,7 +641,7 @@ APIs: Copy the string *u* into a UCS4 buffer, including a null character, if *copy_null* is set. Returns *NULL* and sets an exception on error (in - particular, a :exc:`ValueError` if *buflen* is smaller than the length of + particular, a :exc:`SystemError` if *buflen* is smaller than the length of *u*). *buffer* is returned on success. .. versionadded:: 3.3 |