[Python-checkins] cpython: a more universal unicode char example

benjamin.peterson python-checkins at python.org
Mon Sep 1 23:59:23 CEST 2014


http://hg.python.org/cpython/rev/68d08df36620
changeset:   92298:68d08df36620
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Sep 01 17:59:18 2014 -0400
summary:
  a more universal unicode char example

files:
  Doc/library/functions.rst |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -158,8 +158,7 @@
 
    Return the string representing a character whose Unicode codepoint is the
    integer *i*.  For example, ``chr(97)`` returns the string ``'a'``, while
-   ``chr(12491)`` returns the string ``'ニ'``. This is the inverse of
-   :func:`ord`.
+   ``chr(9731)`` returns the string ``'☃'``. This is the inverse of :func:`ord`.
 
    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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list