[docs] [issue18301] In itertools.chain.from_iterable() there is no cls argument
py.user
report at bugs.python.org
Tue Jun 25 20:58:43 CEST 2013
New submission from py.user:
http://docs.python.org/2/library/itertools.html#itertools.chain.from_iterable
>>> class A:
... @classmethod
... def from_iterable(iterables):
... for it in iterables:
... for element in it:
... yield element
...
>>> A.from_iterable(['ABC', 'DEF'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: from_iterable() takes 1 positional argument but 2 were given
>>>
----------
assignee: docs at python
components: Documentation
files: issue.diff
keywords: patch
messages: 191874
nosy: docs at python, py.user
priority: normal
severity: normal
status: open
title: In itertools.chain.from_iterable() there is no cls argument
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30702/issue.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18301>
_______________________________________
More information about the docs
mailing list