[Python-ideas] Possible PEP 380 tweak

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Oct 30 01:37:41 CEST 2010


Guido van Rossum wrote:

> But since this PEP also specifies "return value" it would be nice if
> there was a convenient way to capture this value, and close seems to
> be it.

Sorry, I missed that bit -- you're right, it does need to be
allowed for in PEP 380 if we're to do this. I'm still not
convinced that it isn't a wrongheaded idea, though. The fact
that it doesn't play well with yield-from gives off a very
bad smell to me.

It seems highly incongruous for the PEP to propose a feature
that's incompatible with the main idea of the whole thing.

-- 
Greg



More information about the Python-ideas mailing list