mirror of https://github.com/python/cpython
a more universal unicode char example
This commit is contained in:
parent
9425c05bab
commit
5fb161f170
|
@ -158,8 +158,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
Return the string representing a character whose Unicode codepoint is the
|
Return the string representing a character whose Unicode codepoint is the
|
||||||
integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while
|
integer *i*. For example, ``chr(97)`` returns the string ``'a'``, while
|
||||||
``chr(12491)`` returns the string ``'ニ'``. This is the inverse of
|
``chr(9731)`` returns the string ``'☃'``. This is the inverse of :func:`ord`.
|
||||||
:func:`ord`.
|
|
||||||
|
|
||||||
The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in
|
The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in
|
||||||
base 16). :exc:`ValueError` will be raised if *i* is outside that range.
|
base 16). :exc:`ValueError` will be raised if *i* is outside that range.
|
||||||
|
|
Loading…
Reference in New Issue