A decorator syntax not yet mentioned (I think!)

Carl Banks imbosol at aerojockey.com
Fri Aug 13 01:11:17 CEST 2004


Mark Bottjer <mark_bottjer at hotmail.com> wrote in message news:<411ba1db$1 at nntp.zianet.com>...
> With this 
> syntax, though, the decorate block changes how the def statement is 
> handled, even though they are at the same indentation level.

That's a problem only if you think of decorate and def as separate
statements.  If, as with if...else and try...except, you think of
decorate...def as a single statement, then there is no problem.

-- 
CARL BANKS



More information about the Python-list mailing list