MCPcopy Index your code
hub / github.com/RustPython/RustPython / classname

Function classname

Lib/pydoc.py:237–242  ·  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

235 return None
236
237def classname(object, modname):
238 """Get a class name and qualify it with a module name if necessary."""
239 name = object.__name__
240 if object.__module__ != modname:
241 name = object.__module__ + '.' + name
242 return name
243
244def parentname(object, modname):
245 """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