MCPcopy
hub / github.com/celery/celery / qualname

Function qualname

celery/utils/imports.py:28–35  ·  view source on GitHub ↗

Return object name.

(obj)

Source from the content-addressed store, hash-verified

26
27
28def qualname(obj):
29 """Return object name."""
30 if not hasattr(obj, '__name__') and hasattr(obj, '__class__'):
31 obj = obj.__class__
32 q = getattr(obj, '__qualname__', None)
33 if '.' not in q:
34 q = '.'.join((obj.__module__, q))
35 return q
36
37
38def instantiate(name, *args, **kwargs):

Callers 8

test_qualnameFunction · 0.90
test_prepareMethod · 0.90
startup_infoMethod · 0.90
startup_infoMethod · 0.90
bugreportFunction · 0.90
__init__Method · 0.85
__innerFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by 3

test_qualnameFunction · 0.72
test_prepareMethod · 0.72