J2 proposal: keyword

Anthony Baxter anthonybaxter at gmail.com
Mon Aug 23 06:03:55 CEST 2004


On Mon, 23 Aug 2004 00:23:32 +0100 (BST), Michael Sparks
<zathras at thwackety.com> wrote:
>      I discovered this after replacing "decorate" with "using" and
>      rerunning the test suite... Incidentally the syntax also allows
>      code like this:
> 
>      using:
>          staticmethod synchronised memoise deprecated
>      def: foo(bar):
>          "This function foos bars all day long"
>          pass

The pie-decorator syntax was modified shortly after a2 to require
one decorator per line. I think for readability's sake, this was a good
call, and would urge you to do this in any new syntax.



More information about the Python-list mailing list