micropython/micropython — pull request #368 by pfalcon (2014-03-23 20:05:39+00:00)
Title: objgenerator: Implement return with value and .close() method.

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.