MCPcopy Index your code
hub / github.com/python/cpython / classname

Function classname

Lib/pydoc.py:172–177  ·  view source on GitHub ↗

Get a class name and qualify it with a module name if necessary.

(object, modname)

Source from the content-addressed store, hash-verified

170 return None
171
172def classname(object, modname):
173 """Get a class name and qualify it with a module name if necessary."""
174 name = object.__name__
175 if object.__module__ != modname:
176 name = object.__module__ + '.' + name
177 return name
178
179def parentname(object, modname):
180 """Get a name of the enclosing class (qualified it with a module name

Callers 5

classlinkMethod · 0.85
formattreeMethod · 0.85
makenameMethod · 0.85
docclassMethod · 0.85
docroutineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…