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

Method namelink

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

673 def grey(self, text): return '<span class="grey">%s</span>' % text
674
675 def namelink(self, name, *dicts):
676 """Make a link for an identifier, given name-to-URL mappings."""
677 for dict in dicts:
678 if name in dict:
679 return '<a href="%s">%s</a>' % (dict[name], name)
680 return name
681
682 def classlink(self, object, modname):
683 """Make a link for a class."""

Callers 2

markupMethod · 0.95
markupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected