[Python-Dev] Decorator syntax J2 (decorate..def), with implementation (original) (raw)
Barry Warsaw barry at python.org
Mon Aug 16 01:44:13 CEST 2004
- Previous message: [Python-Dev] Decorator syntax J2 (decorate..def), with implementation
- Next message: [Python-Dev] Decorator syntax J2 (decorate..def), with implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Decorator syntax J2 (decorate..def), with implementation
- Next message: [Python-Dev] Decorator syntax J2 (decorate..def), with implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]