MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / classname

Function classname

tools/python-3.11.9-amd64/Lib/pydoc.py:200–205  ·  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

198 return '', '\n'.join(lines)
199
200def classname(object, modname):
201 """Get a class name and qualify it with a module name if necessary."""
202 name = object.__name__
203 if object.__module__ != modname:
204 name = object.__module__ + '.' + name
205 return name
206
207def parentname(object, modname):
208 """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