Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31b3683

Browse files
committed
Issue #22180: Remove weak example
1 parent acb8c52 commit 31b3683

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Doc/library/operator.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,6 @@ Operations which work with sequences (some of them with mappings too) include:
228228

229229
Set the value of *a* at index *b* to *c*.
230230

231-
Example: Build a dictionary that maps the ordinals from ``0`` to ``255`` to
232-
their character equivalents.
233-
234-
>>> d = {}
235-
>>> keys = range(256)
236-
>>> vals = map(chr, keys)
237-
>>> map(operator.setitem, [d]*len(keys), keys, vals) # doctest: +SKIP
238-
239-
.. XXX: find a better, readable, example
240231

241232
.. function:: length_hint(obj, default=0)
242233

0 commit comments

Comments
 (0)