[Python-checkins] cpython (merge 3.4 -> default): merge

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


http://hg.python.org/cpython/rev/bda68f973228
changeset:   92063:bda68f973228
parent:      92060:a5368cfbea0e
parent:      92062:9c250f34bfa3
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Aug 10 10:33:28 2014 -0700
summary:
  merge

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
@@ -236,15 +236,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