#NEWLINE# def for_type_by_name( type_module , type_name , func ) : #NEWLINE# #INDENT# '\n    Add a pretty printer for a type specified by the module and name of a type\n    rather than the type object itself.\n    ' #NEWLINE# key = ( type_module , type_name ) #NEWLINE# oldfunc = _deferred_type_pprinters . get ( key , None ) #NEWLINE# if ( func is not None ) : #NEWLINE# #INDENT# _deferred_type_pprinters [ key ] = func #NEWLINE# #UNINDENT# return oldfunc