summaryrefslogtreecommitdiffstats
path: root/Doc/library/operator.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-08-10 17:33:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-08-10 17:33:28 (GMT)
commit939c8133d4d2197431bd68fb9b4e9e3210985568 (patch)
treeb031108a31b042538013d43c41f57d2311b45d28 /Doc/library/operator.rst
parentb30802b7a8a6e653e098cdb0108a729700e9eaaa (diff)
parent31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd (diff)
downloadcpython-939c8133d4d2197431bd68fb9b4e9e3210985568.zip
cpython-939c8133d4d2197431bd68fb9b4e9e3210985568.tar.gz
cpython-939c8133d4d2197431bd68fb9b4e9e3210985568.tar.bz2
merge
Diffstat (limited to 'Doc/library/operator.rst')
-rw-r--r--Doc/library/operator.rst9
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
index 3654d13..c01e63b 100644
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -236,15 +236,6 @@ Operations which work with sequences (some of them with mappings too) include:
Set the value of *a* at index *b* to *c*.
-Example: Build a dictionary that maps the ordinals from ``0`` to ``255`` to
-their character equivalents.
-
- >>> d = {}
- >>> keys = range(256)
- >>> vals = map(chr, keys)
- >>> map(operator.setitem, [d]*len(keys), keys, vals) # doctest: +SKIP
-
-.. XXX: find a better, readable, example
.. function:: length_hint(obj, default=0)