def hash_or_str(obj):
    try:
        return hash((type(obj).__name__, obj))
    except __HOLE__:
        ## Adds the type name to make sure two object of different type but
        ## identical string representation get distinguished.
        return type(obj).__name__ + str(obj)

##
## All purpose object
##
dataset/ETHPy150Open vaab/colour/colour.py/hash_or_str