Re: Don't work __getattr__ with __add__

2010-03-04 Thread Andrey Simurzin
On 4 мар, 11:38, Chris Rebert wrote: > On Thu, Mar 4, 2010 at 12:25 AM, Андрей Симурзин wrote: > > It is object of the class A, in conteiner's class tmpA. Not all method > > from A are in the tmpA. So for exapmle: > > A + B -- yes , tmpA + B no. I try to call method from A for tmpA. I > > can to

Re: Don't work __getattr__ with __add__

2010-03-04 Thread Chris Rebert
On Thu, Mar 4, 2010 at 12:25 AM, Андрей Симурзин wrote: > It is object of the class A, in conteiner's class tmpA. Not all method > from A are in the tmpA. So for exapmle: > A + B -- yes , tmpA + B no. I try to call method from A for tmpA. I > can to call simple method,  such as change(), bit __add

Don't work __getattr__ with __add__

2010-03-04 Thread Андрей Симурзин
It is object of the class A, in conteiner's class tmpA. Not all method from A are in the tmpA. So for exapmle: A + B -- yes , tmpA + B no. I try to call method from A for tmpA. I can to call simple method, such as change(), bit __add__ - don't work. If to remove inheritance from object, the code