MCPcopy Create free account
hub / github.com/twisted/twisted / namedObject

Function namedObject

src/twisted/python/reflect.py:164–170  ·  view source on GitHub ↗

Get a fully named module-global object.

(name)

Source from the content-addressed store, hash-verified

162
163
164def namedObject(name):
165 """
166 Get a fully named module-global object.
167 """
168 classSplit = name.split(".")
169 module = namedModule(".".join(classSplit[:-1]))
170 return getattr(module, classSplit[-1])
171
172
173namedClass = namedObject # backwards compat

Callers 4

_buildFailureMethod · 0.90
unjellyMethod · 0.90
_unjelly_classMethod · 0.90
fullFuncNameFunction · 0.85

Calls 2

namedModuleFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected