> Ok, no problem. But s.shape.name==Sphere (or just s.shape==Sphere) is > better in any case :)) Other possibility, perhaps THE python way:
isinstance(s.shape,Sphere) You can run this to have .name back BTW: Serializable.name=property(lambda self:self.__class__.__name__) Sphere().name # 'Sphere' _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

