mirror of https://github.com/python/cpython.git
Issue #22180: Remove weak example
This commit is contained in:
parent
acb8c52343
commit
31b3683d9b
|
@ -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*.
|
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)
|
.. function:: length_hint(obj, default=0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue