[Python-Dev] Call for defense of @decorators

Mark Russell marktrussell at btopenworld.com
Fri Aug 6 00:52:07 CEST 2004


On Thu, 2004-08-05 at 23:33, "Martin v. Löwis" wrote:
> it's just the PEP that needs updating (a section in whatsnew also needs
> to be drafted). Then, of course, the text saying that "@" is not used
> needs to go.

I have no experience in working on PEPs, but I'm willing to have a go if
nobody else has the time.

> I wonder whether replacing "@" with "!" or "%" would do any good...
> In fact, any binary operator would work - Objective-C does use "+"
> and "-" at the beginning of a line...

Good thought.  Or even something like:

	|staticmethod|
	def foo(): pass

I just tried converting test_decorators.py to this syntax, and it looks
quite nice to my eye.

Mark



More information about the Python-Dev mailing list