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

Guido van Rossum guido at python.org
Sun Jul 19 03:14:36 CEST 2009

On Sat, Jul 18, 2009 at 5:06 PM, Greg Ewing<greg.ewing at canterbury.ac.nz> wrote:
> Ben Finney wrote:
>> 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.
> But it's not a multi-statement expression. It's
> a statement with a suite, and it works entirely
> within the existing framework of the grammar.

The 'where' proposal actually looks nice to me. (Maybe I've been
studying functional languages too much lately :-). My biggest problem
with this concrete proposal is that 'where' means something completely
different in SQL (which I've also studied too much lately :-).

However, I think we should focus on keeping the language stable rather
than keep tinkering with it. Let's help 3rd party developers port
their work to 3.1 rather than planning 3.1's obsolescence.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-ideas mailing list