Message191874
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
>>> |
|
Date |
User |
Action |
Args |
2013-06-25 18:58:43 | py.user | set | recipients:
+ py.user, docs@python |
2013-06-25 18:58:43 | py.user | set | messageid: <1372186723.21.0.67533324157.issue18301@psf.upfronthosting.co.za> |
2013-06-25 18:58:43 | py.user | link | issue18301 messages |
2013-06-25 18:58:43 | py.user | create | |
|