[docs] [issue18301] In itertools.chain.from_iterable() there is no cls argument

Serhiy Storchaka report at bugs.python.org
Tue Aug 6 14:11:33 CEST 2013

Serhiy Storchaka added the comment:

It should be a classmethod.

>>> import itertools
>>> class C(itertools.chain): pass
>>> type(C.from_iterable(['ab', 'cd']))
<class '__main__.C'>

The patch LGTM.

assignee: docs at python -> serhiy.storchaka
stage:  -> commit review

Python tracker <report at bugs.python.org>

More information about the docs mailing list