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.name = 'John'
ClassA.xx.address = 'Sydney'.

etc?  I've no idea if this is possible or desirable.

thanks,
matthew

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to