summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-25 06:32:34 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-25 06:32:34 (GMT)
commitc99c85899af0c1e24f50cc4de25d1a34fb470ac3 (patch)
tree8275dd31ab7ec00b1aa9df394fb5f21737218077 /Doc/library/functions.rst
parentf4d76e6ca77dab7d961df0c60a0ce5a3e4914d97 (diff)
downloadcpython-c99c85899af0c1e24f50cc4de25d1a34fb470ac3.zip
cpython-c99c85899af0c1e24f50cc4de25d1a34fb470ac3.tar.gz
cpython-c99c85899af0c1e24f50cc4de25d1a34fb470ac3.tar.bz2
Remove mention of narrow/wide builds from ord/chr doc.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst9
1 files changed, 1 insertions, 8 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 6944e1d..1ff6b2a 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -152,10 +152,6 @@ are always available. They are listed here in alphabetical order.
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 @@ are always available. They are listed here in alphabetical order.
.. 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])