[Python-ideas] Yield-from: Nonexistent throw() and close()?

Bruce Frederiksen dangyogi at gmail.com
Sat Feb 21 14:37:18 CET 2009


Greg Ewing wrote:
> Does this reasoning make sense?
Yes.

As far as I know, there are no cases where a generator would have a 
close, but not a throw method.  But if I am wrong, then a throw should 
call close on the subgenerator in this case.



More information about the Python-ideas mailing list