[Python-ideas] 'where' statement in Python?

Stephen J. Turnbull stephen at xemacs.org
Tue Jul 20 07:29:01 CEST 2010


Sergio Davis writes:

 > I'm considering the following extension to Python's grammar: adding the
 > 'where' keyword, which would work as follows:
 > 
 > where_expr : expr 'where' NAME '=' expr

We just had a long thread about this.

http://mail.python.org/pipermail/python-ideas/2010-June/007476.html

The sentiment was about -0 to -0.5 on the idea in general, although a
couple of people with experience in implementing Python syntax
expressed sympathy for it.

There have also been threads on earlier variations of the idea,
referenced in the thread above.

HTH



More information about the Python-ideas mailing list