summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-09-09 06:54:27 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-09-09 06:54:27 (GMT)
commit1e21ebcc2ac1c74fbea6bbff0460227a90b8f594 (patch)
tree0796bbd28cbae40fb6dc9103a5fe845fc139472e /Doc/library
parentc70018044304e4c68d5f2f036541cd8f6fe54555 (diff)
downloadcpython-1e21ebcc2ac1c74fbea6bbff0460227a90b8f594.zip
cpython-1e21ebcc2ac1c74fbea6bbff0460227a90b8f594.tar.gz
cpython-1e21ebcc2ac1c74fbea6bbff0460227a90b8f594.tar.bz2
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/itertools.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 0ee93ed..9b64c7d 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: