[Python-ideas] Where-statement (Proposal for function expressions)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jul 18 04:05:22 CEST 2009


Paul Moore wrote:

> That somewhat assumes that a where block is only used for assignments
> (or more accurately, that there's a special exception for the left
> side of an assignment not being included). That's at best a wart.

The more I think about it, the more I think it would be
best for the where block *not* to start a new scope.
That would completely eliminate all these scope issues,
along with break/return/yield problems, etc.

-- 
Greg



More information about the Python-ideas mailing list