summaryrefslogtreecommitdiffstats
path: root/Doc/library/operator.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-08-10 17:33:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-08-10 17:33:03 (GMT)
commit31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd (patch)
tree583df5982937823ee48e86fd3c3aaaa3042a8079 /Doc/library/operator.rst
parentacb8c5234302f8057b331abaafb2cc8697daf58f (diff)
downloadcpython-31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd.zip
cpython-31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd.tar.gz
cpython-31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd.tar.bz2
Issue #22180: Remove weak example
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 3bcbaa4..f9e2a3d 100644
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -228,15 +228,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)