def __init__(self, var): if var[0] not in (string.letters + "_"): raise InvalidVarException("variable names must start with a " "letter or underscore") self.var = var