A decorator syntax not yet mentioned (I think!)

Paul McGuire ptmcg at austin.rr._bogus_.com
Wed Aug 11 12:58:11 EDT 2004


"Peter Hansen" <peter at engcorp.com> wrote in message
news:PcGdnQAV7olvoIfcRVn-ig at powergate.ca...
>
> class Klass:
>      # init set
>
>      decorate:
>          staticmethod
>      def meth0(x):
>          return x
>
BEAUTIFUL!!!  Looks very Pythonic.

This is the first prefix syntax proposal I've seen that looks to address all
of the technical and esthetic objections.

And NO magic punctuation - hooray!

-- Paul





More information about the Python-list mailing list