__getattr__ on non-instantiated class

2006-05-03 Thread Fredp
Hi I was wondering if it is possible to have the various magic methods, mainly __getattr__ and __setattr__, and @property attributes called when accessing the attribute of a non-intantiated class. Imagin something like this: # class MyClass: @property def prop(self): print

Re: __getattr__ on non-instantiated class

2006-05-03 Thread Fredp
Larry Bates ha scritto: > Fredp wrote: > > Hi > > I was wondering if it is possible to have the various magic methods, > > mainly __getattr__ and __setattr__, and @property attributes called > > when accessing the attribute of a non-intantiated class. > &g

Re: __getattr__ on non-instantiated class

2006-05-03 Thread Fredp
Well, actually I need only a tiny subset of a ORM. Or perhaps what I need isn't exactly an ORM, because I have only one kind of Object with a various number of Fields on a separate Table, so I was looking to create something that could fit this scheme and nothing more, but I see in any case it need