fork download
  1. def yoba(f):
  2. def f(self, *xs):
  3. return "ALLOU, ETO " + str(self)
  4. return f
  5.  
  6. class A:
  7. @yoba
  8. def f(self): pass
  9.  
  10.  
  11. print(A().f())
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
ALLOU, ETO <__main__.A object at 0xb7306bac>