[Python-Dev] Decorator syntax J2 (decorate..def), with
implementation
Barry Warsaw
barry at python.org
Mon Aug 16 01:44:13 CEST 2004
On Fri, 2004-08-13 at 19:24, Bob Ippolito wrote:
> My only problem with this syntax is that I expect the common cases
> (mine, anyway) to be zero or one decorators per function, so the extra
> block and indent seems a bit excessive compared to the current
> @prefix-symbol-decorator proposal(s). It is, of course, far better
> than typing the function name three times though! :)
Same here. It trades one line at the end of the function for two (or
more) before the beginning of the function.
-0
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040815/23f479b1/attachment.pgp
More information about the Python-Dev
mailing list