def is_dictionary_subclass(obj):
    'Returns True if *obj* is a subclass of the dict type. *obj* must be\n    a subclass and not the actual builtin dict.\n\n    >>> class Temp(dict): pass\n    >>> is_dictionary_subclass(Temp())\n    True\n    '
    return (hasattr(obj, '__class__') and issubclass(obj.__class__, dict) and (type(obj) is not dict))
Returns True if *obj* is a subclass of the dict type. *obj* must be
a subclass and not the actual builtin dict.

>>> class Temp(dict): pass
>>> is_dictionary_subclass(Temp())
True
def is_dictionary_subclass(obj):
    'Returns True if *obj* is a subclass of the dict type. *obj* must be\n    a subclass and not the actual builtin dict.\n\n    >>> class Temp(dict): pass\n    >>> is_dictionary_subclass(Temp())\n    True\n    '
    return (hasattr(obj, '__class__') and issubclass(obj.__class__, dict) and (type(obj) is not dict))