def better_reprer(o): if type(o) is bitarray: return binascii.hexlify(o.tobytes()).decode() return reprer(o)
def better_reprer(o): if isinstance(o, Thing): return o.__special_repr__() return reprer(o)