Frank Hamand added the comment: The file contents so people dont have to download the zip:
generators.py: --------------------------- def subgen(): yield def other_gen(self): move = yield from subgen() game.py: --------------------------- class Game(object): def __init__(self): self.gen = self.first_gen() next(self.gen) def first_gen(self): while True: from generators import \ other_gen yield from other_gen(self) test.py: --------------------------- from game import Game Game() ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17669> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com