From 31b3683d9b49f48a6e9b17caaa0d4a04f2777bbd Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 10 Aug 2014 10:33:03 -0700 Subject: Issue #22180: Remove weak example --- Doc/library/operator.rst | 9 --------- 1 file changed, 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) -- cgit v0.12