Re: staticmethod and setattr

2010-03-15 Thread Michael.Lausch
On Mar 15, 11:40 am, Steven D'Aprano wrote: > On Mon, 15 Mar 2010 01:43:02 -0700, Michael.Lausch wrote: > > Hi, > > > I managed to get confused by Python, which is not such an easy task. > > > The problem i have is rooted in marshalling, JSON and Dojo. I need s

staticmethod and setattr

2010-03-15 Thread Michael.Lausch
Hi, I managed to get confused by Python, which is not such an easy task. The problem i have is rooted in marshalling, JSON and Dojo. I need some static class in function with the name "$ref" i tried: class Foo(object): @staticmethod def _ref(o): pass setattr(Foo, "$ref", Foo._re