Message194701
>>> import itertools
>>>
>>> class A(itertools.chain):
... def from_iter(arg):
... return A(iter(arg))
...
>>> class B(A):
... pass
...
>>> B('a', 'b')
<__main__.B object at 0x7f40116d7730>
>>> B.from_iter(['a', 'b'])
<__main__.A object at 0x7f40116d7780>
>>>
it should be B |
|
Date |
User |
Action |
Args |
2013-08-08 17:45:26 | py.user | set | recipients:
+ py.user, rhettinger, terry.reedy, ezio.melotti, r.david.murray, docs@python, serhiy.storchaka |
2013-08-08 17:45:26 | py.user | set | messageid: <1375983926.78.0.0867551089755.issue18301@psf.upfronthosting.co.za> |
2013-08-08 17:45:26 | py.user | link | issue18301 messages |
2013-08-08 17:45:26 | py.user | create | |
|