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

Ben Finney ben+python at benfinney.id.au
Sat Jul 18 07:07:09 CEST 2009


Greg Ewing <greg.ewing at canterbury.ac.nz> writes:

> In a sense, the where-block is in part an attempt to extend the
> assignment statement so that the "right hand side" can span more than
> one statement.

That pretty much spells its doom, then. The BDFL is quite firm (as
demonstrated in, e.g., the pronouncement against multi-line lambda
<URL:http://www.python.org/dev/peps/pep-3099/>) that multi-statement
expressions are verboten.

-- 
 \         “Pinky, are you pondering what I'm pondering?” “I think so, |
  `\   Brain, but why does a forklift have to be so big if all it does |
_o__)                           is lift forks?” —_Pinky and The Brain_ |
Ben Finney




More information about the Python-ideas mailing list