summaryrefslogtreecommitdiffstats
path: root/Doc/library/operator.rst
diff options
context:
space:
mode:
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)