Serhiy Storchaka added the comment: It should be a classmethod.
>>> import itertools >>> class C(itertools.chain): pass ... >>> type(C.from_iterable(['ab', 'cd'])) <class '__main__.C'> The patch LGTM. ---------- assignee: docs@python -> serhiy.storchaka stage: -> commit review _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18301> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com