[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 : [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 ]

  • More information about the Python-Dev mailing list

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant