[Python-ideas] Multiple arguments for decorators

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Dec 1 18:22:25 EST 2015


Suppose you were able to write:

    @somedecorator as name:
       <suite>

and have it be equivalent to

    @somedecorator:
       class name:
          <suite>

Then you could say

    @property as foo:
       def get(self):
          ...
       def set(self, value):
          ...

-- 
Greg



More information about the Python-ideas mailing list