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

Nick Coghlan ncoghlan at gmail.com
Sat Jul 24 11:58:23 CEST 2010


On Sat, Jul 24, 2010 at 12:11 AM, Mark Dickinson <dickinsm at gmail.com> wrote:
> On Tue, Jul 20, 2010 at 2:27 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> For the record, I am personally +1 on the idea (otherwise I wouldn't
>> have put so much thought into it over the years). It's just a *lot*
>> harder to define complete and consistent semantics for the concept
>> than people often realise.
>>
>> However, having the question come up twice within the last month
>> finally inspired me to write the current status of the topic down in a
>> deferred PEP: http://www.python.org/dev/peps/pep-3150/
>
> Is Python's grammar still LL(1) under this proposal?

It would need to stay that way, as the LL(1) restriction is a rule
Guido has stated he is very reluctant to break. I *think* my second
grammar change suggestion conforms with that requirement but I haven't
actually tried it out.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list