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

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


MRAB wrote:

> "do" might be a sufficiently generic word to cover all the cases.
>
>     if a == b where:
>         ...
>     do:
>         ...

It's probably okay for 'if', but to me it doesn't read
right with 'def' or 'class'.

But in any case, I'm -0.9 on allowing 'where' on
arbitrary statements in the first place. Seems like
feature creep on a massive scale to me. (Feature
stampede?)

-- 
Greg



More information about the Python-ideas mailing list