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

Method classlink

tools/python-3.11.9-amd64/Lib/pydoc.py:663–669  ·  view source on GitHub ↗

Make a link for a class.

(self, object, modname)

Source from the content-addressed store, hash-verified

661 return name
662
663 def classlink(self, object, modname):
664 """Make a link for a class."""
665 name, module = object.__name__, sys.modules.get(object.__module__)
666 if hasattr(module, name) and getattr(module, name) is object:
667 return '<a href="%s.html#%s">%s</a>' % (
668 module.__name__, name, classname(object, modname))
669 return classname(object, modname)
670
671 def parentlink(self, object, modname):
672 """Make a link for the enclosing class or module."""

Callers 3

formattreeMethod · 0.95
docclassMethod · 0.95
docroutineMethod · 0.95

Calls 2

classnameFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected