This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author py.user
Recipients docs@python, ezio.melotti, py.user, r.david.murray, rhettinger, serhiy.storchaka, terry.reedy
Date 2013-08-08.17:45:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375983926.78.0.0867551089755.issue18301@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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
History
Date User Action Args
2013-08-08 17:45:26py.usersetrecipients: + py.user, rhettinger, terry.reedy, ezio.melotti, r.david.murray, docs@python, serhiy.storchaka
2013-08-08 17:45:26py.usersetmessageid: <1375983926.78.0.0867551089755.issue18301@psf.upfronthosting.co.za>
2013-08-08 17:45:26py.userlinkissue18301 messages
2013-08-08 17:45:26py.usercreate