Aug. 8, 2013
5:45 p.m.
py.user added the comment:
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 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18301> _______________________________________