diff options
author | Georg Brandl <georg@python.org> | 2010-11-26 08:28:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-26 08:28:05 (GMT) |
commit | b727650e0cc89ffccaf99de46d715bd33ff3b400 (patch) | |
tree | 2bf3eba728a93b8434774c023cb175831e24bc50 /Include | |
parent | 0a8e5626ad8d007c25826ad3cd7c0ceea67dc462 (diff) | |
download | cpython-b727650e0cc89ffccaf99de46d715bd33ff3b400.zip cpython-b727650e0cc89ffccaf99de46d715bd33ff3b400.tar.gz cpython-b727650e0cc89ffccaf99de46d715bd33ff3b400.tar.bz2 |
Merged revisions 86561-86562,86564-86565,86705,86708,86713 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86561 | georg.brandl | 2010-11-20 12:47:10 +0100 (Sa, 20 Nov 2010) | 1 line
#10460: Update indent.pro to match PEP 7 better.
........
r86562 | georg.brandl | 2010-11-20 14:44:41 +0100 (Sa, 20 Nov 2010) | 1 line
#10439: document PyCodec C APIs.
........
r86564 | georg.brandl | 2010-11-20 15:08:53 +0100 (Sa, 20 Nov 2010) | 1 line
#10460: an even better indent.pro.
........
r86565 | georg.brandl | 2010-11-20 15:16:17 +0100 (Sa, 20 Nov 2010) | 1 line
socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case.
........
r86705 | georg.brandl | 2010-11-23 08:54:19 +0100 (Di, 23 Nov 2010) | 1 line
#10468: document Unicode exception creation and access functions.
........
r86708 | georg.brandl | 2010-11-23 09:37:54 +0100 (Di, 23 Nov 2010) | 2 lines
#10511: clarification of what heaps are; suggested by Johannes Hoff.
........
r86713 | georg.brandl | 2010-11-23 19:14:57 +0100 (Di, 23 Nov 2010) | 1 line
assert.h is also included. Thanks to Savio Sena.
........
Diffstat (limited to 'Include')
-rw-r--r-- | Include/codecs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/codecs.h b/Include/codecs.h index 0d76241..c038c6a 100644 --- a/Include/codecs.h +++ b/Include/codecs.h @@ -133,7 +133,7 @@ PyAPI_FUNC(PyObject *) PyCodec_StreamWriter( /* Unicode encoding error handling callback registry API */ -/* Register the error handling callback function error under the name +/* Register the error handling callback function error under the given name. This function will be called by the codec when it encounters unencodable characters/undecodable bytes and doesn't know the callback name, when name is specified as the error parameter @@ -141,8 +141,8 @@ PyAPI_FUNC(PyObject *) PyCodec_StreamWriter( Return 0 on success, -1 on error */ PyAPI_FUNC(int) PyCodec_RegisterError(const char *name, PyObject *error); -/* Lookup the error handling callback function registered under the - name error. As a special case NULL can be passed, in which case +/* Lookup the error handling callback function registered under the given + name. As a special case NULL can be passed, in which case the error handling callback for "strict" will be returned. */ PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name); @@ -152,7 +152,7 @@ PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc); /* ignore the unicode error, skipping the faulty input */ PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc); -/* replace the unicode error with ? or U+FFFD */ +/* replace the unicode encode error with ? or U+FFFD */ PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc); /* replace the unicode encode error with XML character references */ |