def __init__(self, data=0): if type(data) is type(""): if data == "none": self.data = 0 else: self.data = 0 self.set(data) else: UserInt.__init__(self, data)
def __init__(self, data=9, increment=0): UserInt.__init__(self, data) if isinstance(data, INETPort): self.increment = data.increment else: self.increment = increment