with as J2 keyword (WAS: Re: J2 0-2-6 is available)
Steven Bethard
steven.bethard at gmail.com
Wed Aug 25 02:51:42 EDT 2004
Paul Rubin <"http://phr.cx" <at> NOSPAM.invalid> writes:
>
> Steven Bethard writes:
> > @classmethod
> > @funcattrs(author="François Pinard")
> > def foo(cls):
> > pass
>
> How about double colon instead of @?
>
> ::classmethod
> ::funcattrs(author="François Pinard")
> def foo(cls):
> pass
Well, a double colon isn't valid decorator syntax, so it wouldn't be good for
me to present examples of decorator usage in that form... Maybe I
misunderstand you? Or maybe you're using a quote from me out of context? I'm
confused...
Steve
More information about the Python-list
mailing list