diff options
author | Raymond Hettinger <python@rcn.com> | 2013-09-09 01:54:27 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-09-09 01:54:27 -0500 |
commit | 1e21ebcc2ac1c74fbea6bbff0460227a90b8f594 (patch) | |
tree | 0796bbd28cbae40fb6dc9103a5fe845fc139472e | |
parent | c70018044304e4c68d5f2f036541cd8f6fe54555 (diff) | |
download | cpython-git-1e21ebcc2ac1c74fbea6bbff0460227a90b8f594.tar.gz |
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
-rw-r--r-- | Doc/library/itertools.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 0ee93edc9a..9b64c7d2d6 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -156,9 +156,8 @@ loops that truncate the stream. .. classmethod:: chain.from_iterable(iterable) Alternate constructor for :func:`chain`. Gets chained inputs from a - single iterable argument that is evaluated lazily. Equivalent to:: + single iterable argument that is evaluated lazily. Roughly equivalent to:: - @classmethod def from_iterable(iterables): # chain.from_iterable(['ABC', 'DEF']) --> A B C D E F for it in iterables: |