1HauntedMansion = type("HauntedMansion", (), { "__init__": lambda self, **kwargs: self.__dict__.update(kwargs), "__getattr__": lambda _, __: "Booooo, only ghosts here!", "__getattribute__": lambda self, name: object.__getattribute__(self, name) if name.startswith('__') else (object.__getattribute__(self, name[len('spooky_'):]) if name.startswith('spooky_') and name[len('spooky_'):] in self.__dict__ else "Booooo, only ghosts here!")})
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK