from Property import Property import PhysicalPropertyTypes class PhysicalProperty (Property) : def __init__(self, _name, _datatype, size1 = None, size2 = None): if (not( _datatype in PhysicalPropertyTypes.types)) : raise AssertionError, "Invalid datatype " + str(_datatype) self.name = _name self.datatype = _datatype(size1, size2)