Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0aff8e

Browse files
committed
Patch from Marc-Andre Lemburg <[email protected]>:
Added Unicode type to the language reference.
1 parent 54b1c0b commit f0aff8e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,21 @@ \section{The standard type hierarchy\label{types}}
277277
\bifuncindex{chr}
278278
\bifuncindex{ord}
279279

280+
\item[Unicode]
281+
The items of a Unicode object are Unicode characters. A Unicode
282+
character is represented by a Unicode object of one item and can hold
283+
a 16-bit value representing a Unicode ordinal. The built-in functions
284+
\function{unichr()}\bifuncindex{unichr} and
285+
\function{ord()}\bifuncindex{ord} convert between characters and
286+
nonnegative integers representing the Unicode ordinals as defined in
287+
the Unicode Standard 3.0. Conversion from and to other encodings are
288+
possible through the Unicode method \method{encode} and the built-in
289+
function \function{unicode()}\bifuncindex{unicode}.
290+
\obindex{unicode}
291+
\index{character}
292+
\index{integer}
293+
\index{Unicode@\UNICODE{}}
294+
280295
\item[Tuples]
281296
The items of a tuple are arbitrary Python objects.
282297
Tuples of two or more items are formed by comma-separated lists

0 commit comments

Comments
 (0)