Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-09-20 | py/objgenerator: Implement PEP479, StopIteration convs to RuntimeError. | Damien George | |
This commit implements PEP479 which disallows raising StopIteration inside a generator to signal that it should be finished. Instead, the generator should simply return when it is complete. See https://www.python.org/dev/peps/pep-0479/ for details. | |||
2014-03-26 | objgenerator: Implement return with value and .close() method. | Paul Sokolovsky | |
Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features. |