[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>
<http://bugs.python.org/issue18301>
_______________________________________
More information about the Python-bugs-list
mailing list