environment/lib/python2.7/site-packages/IPython/lib/pretty.py
def for_type_by_name(type_module, type_name, func):
    """
    Add a pretty printer for a type specified by the module and name of a type
    rather than the type object itself.
    """
    key = (type_module, type_name)
    oldfunc = _deferred_type_pprinters.get(key, None)
    if func is not None:
        # To support easy restoration of old pprinters, we need to ignore Nones.
        _deferred_type_pprinters[key] = func
    return oldfunc
def for_type_by_name(type_module, type_name, func):
    key = (type_module, type_name)
    oldfunc = _deferred_type_pprinters.get(key, None)
    if func is not None:
        # To support easy restoration of old pprinters, we need to ignore Nones.
        _deferred_type_pprinters[key] = func
    return oldfunc
def for_type_by_name ( type_module , type_name , func ) : key = ( type_module , type_name ) oldfunc = _deferred_type_pprinters . get ( key , None ) if func is not None : # To support easy restoration of old pprinters, we need to ignore Nones. _deferred_type_pprinters [ key ] = func return oldfunc
Add a pretty printer for a type specified by the module and name of a type
    rather than the type object itself.
Add a pretty printer for a type specified by the module and name of a type rather than the type object itself .