Message191874
| Author |
py.user |
| Recipients |
docs@python, py.user |
| Date |
2013年06月25日.18:58:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1372186723.21.0.67533324157.issue18301@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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
>>> |
|
History
|
|---|
| 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 |
|