- , , , . IOW,
@mydecorator
def f(...):
def f(...):
f = mydecorator(f)
, ( f ;-) def ( class, ), . , !
(, , , , ;-). ,
@classmethod
def f(cls, ...):
( )
@property
def foo(self, ...):
( 2.6 ;-), ( "" , ... , ! -).
Python, - , . , ( [[ , , , ]]) . , - DRY, "Do not Repeat Yourself", , , , .