[Python-ideas] generator.close

Matt Joiner anacrolix at gmail.com
Wed Apr 11 11:38:39 CEST 2012


Why can't generator.close() return the value if a StopIteration is raised?

The PEPs mentioned that it was proposed before, but I can't find any
definitive reason, and it's terribly convenient if it does.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120411/f1165299/attachment.html>


More information about the Python-ideas mailing list