[Python-checkins] cpython (3.4): Issue #22180: Remove weak example

raymond.hettinger python-checkins at python.org
Sun Aug 10 19:33:36 CEST 2014


http://hg.python.org/cpython/rev/9c250f34bfa3
changeset:   92062:9c250f34bfa3
branch:      3.4
parent:      92059:2a3538f14948
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Aug 10 10:33:03 2014 -0700
summary:
  Issue #22180:  Remove weak example

files:
  Doc/library/operator.rst |  9 ---------
  1 files changed, 0 insertions(+), 9 deletions(-)


diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -228,15 +228,6 @@
 
    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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list