From: Raymond Hettinger Date: Mon, 9 Sep 2013 06:54:27 +0000 (-0500) Subject: Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent... X-Git-Tag: v3.4.0a3~89^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e21ebcc2ac1c74fbea6bbff0460227a90b8f594;p=python Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code. --- 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: