def maybeName(obj):
    """ Returns an object's __name__ attribute or it's string representation.

    @param obj any object
    @return obj name or string representation
    """
    try:
        return obj.__name__
    except (__HOLE__, ):
        return str(obj)
dataset/ETHPy150Open blampe/IbPy/ib/lib/__init__.py/maybeName