[Python-Dev] Re: Decorators: vertical bar syntax
Paul Moore
pf_moore at yahoo.co.uk
Sat Aug 7 16:27:10 CEST 2004
Mike Thompson <mike.spam.filter at day8.com.au> writes:
> Terry Reedy wrote:
>
>> Is a space allowed after the prefic character, whatever it might be?
>> With
>> def foo():
>> | classmethod
>> | accepts(int,int)
>> | returns(float)
>>
>
>
> Thats it! I love it.
Note that there is no implementation of this currently available
(whereas changing @ to | in the existing syntax is likely to be a
trivial change). Proponents of this variant (or any other without an
implementation available) will ultimately have to deliver code.
I've added notes to the Wiki as to which variants have
implementations, FWIW.
Paul
--
Instant gratification takes too long -- Carrie Fisher
More information about the Python-Dev
mailing list