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