@staticmethod
def obj_to_name(obj, cls=None):
    'Helper function to create the string.'
    if (cls is None):
        cls = type(obj)
    try:
        obj_id = hash(obj)
    except TypeError:
        obj_id = id(obj)
    return ('<%s.%s@%i>' % (cls.__module__, cls.__name__, obj_id))
Helper function to create the string.
@staticmethod
def obj_to_name(obj, cls=None):
    
    if (cls is None):
        cls = type(obj)
    try:
        obj_id = hash(obj)
    except TypeError:
        obj_id = id(obj)
    return ('<%s.%s@%i>' % (cls.__module__, cls.__name__, obj_id))