(object, modname)
return name
Get a class name and qualify it with a module name if necessary.
Get a class name and qualify it with a module name if necessary.
Get a class name and qualify it with a module name if necessary .
def classname(object, modname):
    """Get a class name and qualify it with a module name if necessary."""
    name = object.__name__
    if object.__module__ != modname:
        name = object.__module__ + '.' + name
    return name
def classname ( object , modname ) : name = object . __name__ if object . __module__ != modname : name = object . __module__ + '.' + name return name