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

Bruce Leban bruce at leapyear.org
Thu Jul 22 00:36:14 CEST 2010

On Wed, Jul 21, 2010 at 2:58 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> On Thu, Jul 22, 2010 at 1:51 AM, Bruce Leban <bruce at leapyear.org> wrote:
> > let me toss in an alternative syntax:
> >     given:
> >         suite
> >     do:
> >         suite

>  However, writing it that way has even less to offer over ordinary
> local variables than the postfix given clause.

Perhaps. I do think it looks more like Python. The PEP says it's "some form
of statement local namespace". If that's the advantage, this alternative
offers it. If the advantage is that it introduces a different execution
order, then the PEP should make the case for that.

--- Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20100721/653eeb4d/attachment.html>

More information about the Python-ideas mailing list