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

Function html_keywords

Lib/pydoc.py:2564–2577  ·  view source on GitHub ↗

Index of keywords.

()

Source from the content-addressed store, hash-verified

2562 return 'Topics', contents
2563
2564 def html_keywords():
2565 """Index of keywords."""
2566 heading = html.heading(
2567 '<strong class="title">INDEX</strong>',
2568 )
2569 names = sorted(Helper.keywords.keys())
2570
2571 def bltinlink(name):
2572 return '<a href="topic?key=%s">%s</a>' % (name, name)
2573
2574 contents = html.multicolumn(names, bltinlink)
2575 contents = heading + html.bigsection(
2576 'Keywords', 'index', contents)
2577 return 'Keywords', contents
2578
2579 def html_topicpage(topic):
2580 """Topic or keyword help page."""

Callers 1

get_html_pageFunction · 0.85

Calls 4

multicolumnMethod · 0.80
bigsectionMethod · 0.80
headingMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…