[Python-checkins] cpython: Remove mention of narrow/wide builds from ord/chr doc.
ezio.melotti
python-checkins at python.org
Tue Oct 25 08:33:07 CEST 2011
http://hg.python.org/cpython/rev/e03784770ae1
changeset: 73117:e03784770ae1
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Tue Oct 25 09:32:34 2011 +0300
summary:
Remove mention of narrow/wide builds from ord/chr doc.
files:
Doc/library/functions.rst | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -152,10 +152,6 @@
1,114,111 (0x10FFFF in base 16). :exc:`ValueError` will be raised if *i* is
outside that range.
- Note that on narrow Unicode builds, the result is a string of
- length two for *i* greater than 65,535 (0xFFFF in hexadecimal).
-
-
.. function:: classmethod(function)
@@ -919,14 +915,11 @@
.. XXX works for bytes too, but should it?
.. function:: ord(c)
- Given a string representing one Uncicode character, return an integer
+ Given a string representing one Unicode character, return an integer
representing the Unicode code
point of that character. For example, ``ord('a')`` returns the integer ``97``
and ``ord('\u2020')`` returns ``8224``. This is the inverse of :func:`chr`.
- On wide Unicode builds, if the argument length is not one, a
- :exc:`TypeError` will be raised. On narrow Unicode builds, strings
- of length two are accepted when they form a UTF-16 surrogate pair.
.. function:: pow(x, y[, z])
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list