diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-06 13:57:21 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-06 13:57:21 (GMT) |
commit | f0aff8e759b34aad1a2026a838f4aa37c2920539 (patch) | |
tree | 595954e8bde327791de291ac4846a6eb67e51c95 /Doc | |
parent | 54b1c0b408136b6c0968d3cc4337d5d552137313 (diff) | |
download | cpython-f0aff8e759b34aad1a2026a838f4aa37c2920539.zip cpython-f0aff8e759b34aad1a2026a838f4aa37c2920539.tar.gz cpython-f0aff8e759b34aad1a2026a838f4aa37c2920539.tar.bz2 |
Patch from Marc-Andre Lemburg <mal@lemburg.com>:
Added Unicode type to the language reference.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref3.tex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 7cc0762..199933d 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -277,6 +277,21 @@ Or perhaps someone can propose a better rule?) \bifuncindex{chr} \bifuncindex{ord} +\item[Unicode] +The items of a Unicode object are Unicode characters. A Unicode +character is represented by a Unicode object of one item and can hold +a 16-bit value representing a Unicode ordinal. The built-in functions +\function{unichr()}\bifuncindex{unichr} and +\function{ord()}\bifuncindex{ord} convert between characters and +nonnegative integers representing the Unicode ordinals as defined in +the Unicode Standard 3.0. Conversion from and to other encodings are +possible through the Unicode method \method{encode} and the built-in +function \function{unicode()}\bifuncindex{unicode}. +\obindex{unicode} +\index{character} +\index{integer} +\index{Unicode@\UNICODE{}} + \item[Tuples] The items of a tuple are arbitrary Python objects. Tuples of two or more items are formed by comma-separated lists |