From: Raymond Hettinger Date: Sun, 10 Aug 2014 17:33:03 +0000 (-0700) Subject: Issue #22180: Remove weak example X-Git-Tag: v3.4.2rc1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd;p=python Issue #22180: Remove weak example --- diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 3bcbaa4b86..f9e2a3d003 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)