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