]> granicus.if.org Git - python/commitdiff
Issue #22180: Remove weak example
authorRaymond Hettinger <python@rcn.com>
Sun, 10 Aug 2014 17:33:03 +0000 (10:33 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 10 Aug 2014 17:33:03 +0000 (10:33 -0700)
Doc/library/operator.rst

index 3bcbaa4b86e17ddd5292e2ca0d886a04436dfb84..f9e2a3d003e20490f20468e375c9e424cca0012c 100644 (file)
@@ -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)