@decorators
Terry Reedy
tjreedy at udel.edu
Fri Aug 6 17:27:59 EDT 2004
"David Fraser" <davidf at sjsoft.com> wrote in message
news:cf05e8$41d$2 at ctb-nnrp2.saix.net...
> John Roth wrote:
> > "daishi" <google at daishi.fastmail.fm> wrote in message
> > news:d22692a3.0408052233.3459c3fa at posting.google.com...
> >>As far as I know, the proposed @decorator syntax will be the first
> >>time that two logical lines of python with the same indentation will
> >>not be independent of one another.
> > Examples:
> >
> > try - except - finally
> > if - elif - else
> > while - else
>
> I think he mean two consecutive lines of python code with the same
> indentation.
And the same examples apply:
if like(atdeco): print 'hooray'
else: print 'boo'
Terry J. Reedy
More information about the Python-list
mailing list