summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-01-24 08:10:07 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-01-24 08:10:07 (GMT)
commit0110d3b2ad8cb0e53b61cb85a0d2e886833097d5 (patch)
tree5fa055e52e0ac2c19247e999794d98c5a99be49c /Doc
parent42e655908adc49417485e3b9d893e3d1a1012f78 (diff)
downloadcpython-0110d3b2ad8cb0e53b61cb85a0d2e886833097d5.zip
cpython-0110d3b2ad8cb0e53b61cb85a0d2e886833097d5.tar.gz
cpython-0110d3b2ad8cb0e53b61cb85a0d2e886833097d5.tar.bz2
new unicodedata functions (name, lookup)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libunicodedata.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/lib/libunicodedata.tex b/Doc/lib/libunicodedata.tex
index bcf0563..5096652 100644
--- a/Doc/lib/libunicodedata.tex
+++ b/Doc/lib/libunicodedata.tex
@@ -21,6 +21,19 @@ UnicodeData File Format 3.0.0 (see
\url{http://www.unicode.org/Public/UNIDATA/UnicodeData.html}). It
defines the following functions:
+\begin{funcdesc}{lookup}{name}
+ Look up character by name. If a character with the
+ given name is found, return the corresponding Unicode
+ character. If not found, \exception{KeyError} is raised.
+\end{funcdesc}
+
+\begin{funcdesc}{name}{unichr\optional{, default}}
+ Returns the name assigned to the Unicode character
+ \var{unichr} as a string. If no name is defined,
+ \var{default} is returned, or, if not given,
+ \exception{ValueError} is raised.
+\end{funcdesc}
+
\begin{funcdesc}{decimal}{unichr\optional{, default}}
Returns the decimal value assigned to the Unicode character
\var{unichr} as integer. If no such value is defined,