Other situations like this (was RE: [Python-Dev] Nested scopes resolution -- you can breathe again!)
Jeremy Hylton
jeremy@alum.mit.edu
Fri, 23 Feb 2001 18:00:59 -0500 (EST)
>>>>> "TP" == Tim Peters <tim.one@home.com> writes:
TP> [Jeremy]
>> 1 Should this work?
>>
>> if x: from __future__ import nested_scopes
>>
>> I presume not, but the sketch of the rules you posted earlier
>> presumably allow it.
TP> You have to learn to think more like tabnanny: "module scope"
TP> obviously means "indent level 0" if you're obsessed with
TP> whitespace <wink>.
Hmmmm... I'm not yet sure how to deduce indent level 0 inside the
parser.
Were we going to allow?
try:
from __future__ import curly_braces
except ImportError:
...
Jeremy