Nick Coghlan wrote:
Since correctly written generators are permitted to convert GeneratorExit to StopIteration, the 'yield from' expression should detect when that has happened and reraise the original exception.
I'll have to think about that a bit, but you're probably right.
it is also necessary to block close() in order to share an iterator.
That's a typo -- I meant to say 'throw' and 'close' there, I think. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com