def __repr__(self): f = sys._getframe(2) if f.f_code.co_name == "repr_": return "<SECRET>" else: return str.__repr__(self)