A decorator syntax not yet mentioned (I think!)

Carl Banks imbosol at aerojockey.com
Thu Aug 12 19:11:17 EDT 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