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):
  _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 ) : _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 .