diff options
author | Fred Drake <fdrake@acm.org> | 2002-07-09 05:25:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-07-09 05:25:46 (GMT) |
commit | 4254cbd29c77f3d26d701198735957375a995dcc (patch) | |
tree | ae3a4c3d75b35de522875bd93d13f1766b599602 | |
parent | eab5f8a43d49801fbf7e642fed8d708e4030ff33 (diff) | |
download | cpython-4254cbd29c77f3d26d701198735957375a995dcc.zip cpython-4254cbd29c77f3d26d701198735957375a995dcc.tar.gz cpython-4254cbd29c77f3d26d701198735957375a995dcc.tar.bz2 |
Note that unicode() can raise LookupError for unknown codecs.
Closes SF bug #513666.
-rw-r--r-- | Doc/lib/libfuncs.tex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index f695c3d..5526dc5 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -859,7 +859,8 @@ def my_import(name): If \var{encoding} and/or \var{errors} are given, \code{unicode()} will decode the object which can either be an 8-bit string or a character buffer using the codec for \var{encoding}. The - \var{encoding} parameter is a string giving the name of an encoding. + \var{encoding} parameter is a string giving the name of an encoding; + if the encoding is not known, \exception{LookupError} is raised. Error handling is done according to \var{errors}; this specifies the treatment of characters which are invalid in the input encoding. If \var{errors} is \code{'strict'} (the default), a |