Commit 939c8133 authored by Raymond Hettinger's avatar Raymond Hettinger

merge

parents b30802b7 31b3683d
......@@ -236,15 +236,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment