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

Method namelink

Lib/pydoc.py:720–725  ·  view source on GitHub ↗

Make a link for an identifier, given name-to-URL mappings.

(self, name, *dicts)

Source from the content-addressed store, hash-verified

718 def grey(self, text): return '<span class="grey">%s</span>' % text
719
720 def namelink(self, name, *dicts):
721 """Make a link for an identifier, given name-to-URL mappings."""
722 for dict in dicts:
723 if name in dict:
724 return '<a href="%s">%s</a>' % (dict[name], name)
725 return name
726
727 def classlink(self, object, modname):
728 """Make a link for a class."""

Callers 2

markupMethod · 0.95
markupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected