Yes but if we use lazy we have to define and import it from somewhere. There is another reason. Using staticmethod we can also do
class A(): pass a=A() a.f=lambda(instance,row,*a,**b): return 'lazy value' a.g=lambda(instance,row,*a,**b): return 'lazy value' a.h=lambda(instance,row,*a,**b): return 'lazy value' db.table.virtualfields.append(a) Lat me give it a try anyway... On Aug 20, 5:51 am, Bruno Rocha <[email protected]> wrote: > why static_method is used to define this? not better to have some @lazy > decorator?

