Re: Class property with value and class

2006-12-19 Thread Ben Finney
"manstey" <[EMAIL PROTECTED]> writes: > Is is possible to have two classes, ClassA and ClassB, and > setattr(ClassA, 'xx',ClassB), AND to then have ClassA.xx store an > integer value as well, which is not part of ClassB? You seem somewhat confused over classes and instances. There's little need t

Re: Class property with value and class

2006-12-19 Thread Diez B. Roggisch
manstey wrote: > Hi, > > Is is possible to have two classes, ClassA and ClassB, and > setattr(ClassA, 'xx',ClassB), AND to then have ClassA.xx store an > integer value as well, which is not part of ClassB? > > e.g. If ClassB has two properties, name and address: > > ClassA.xx=10 > ClassA.xx.nam