MCPcopy Index your code
hub / github.com/ipython/ipython / _mod_name_key

Function _mod_name_key

IPython/core/formatters.py:322–329  ·  view source on GitHub ↗

Return a (__module__, __name__) tuple for a type. Used as key in Formatter.deferred_printers.

(typ)

Source from the content-addressed store, hash-verified

320
321
322def _mod_name_key(typ):
323 """Return a (__module__, __name__) tuple for a type.
324
325 Used as key in Formatter.deferred_printers.
326 """
327 module = getattr(typ, '__module__', None)
328 name = getattr(typ, '__name__', None)
329 return (module, name)
330
331
332def _get_type(obj):

Callers 5

test_for_type_stringFunction · 0.90
test_lookup_stringFunction · 0.90
lookup_by_typeMethod · 0.85
popMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_for_type_stringFunction · 0.72
test_lookup_stringFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…