Open Marlysson opened 8 years ago
Using the method .is_valid() at constructor , to that so that building object raise some exception..
.is_valid()
class Frame: def __init__(self,value): if self.is_valid(self): raises ValueError("Incorrect Value") self.value = value
Using the method
.is_valid()
at constructor , to that so that building object raise some exception..