[Python-Dev] Re: Decorators: vertical bar syntax
Gregory Lielens
gregory.lielens at fft.be
Sun Aug 8 13:08:30 CEST 2004
> I just anted to rewrite those "real-life-looking" examples
> with my proposed '%' syntax:
>
> def foo() % (classmethod, accepts(int,int), returns(float),):
>
> or formatted:
>
> def foo() % (
> classmethod,
> accepts(int,int),
> returns(float),):
>
> Or it can be done the this way:
>
> def foo():
> ...
>
> foo %= (classmethod, accepts(int,int), returns(float),)
>
> The operation could be called "decorative apply", if the LHS
> has __call__ attribute. Just a new form of % operation with
> special syntax for "def" operator.
>
> Sincerely yours, Roman Suzi
Yes, you should add this proposal in the wiki
([Python-Dev] Re: Decorators: vertical bar syntax
Next message: [Python-Dev] Re: Decorators: vertical bar syntax
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-Dev
mailing list