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

Function html_keywords

Lib/pydoc.py:2612–2625  ·  view source on GitHub ↗

Index of keywords.

()

Source from the content-addressed store, hash-verified

2610 return 'Topics', contents
2611
2612 def html_keywords():
2613 """Index of keywords."""
2614 heading = html.heading(
2615 '<strong class="title">INDEX</strong>',
2616 )
2617 names = sorted(Helper.keywords.keys())
2618
2619 def bltinlink(name):
2620 return '<a href="topic?key=%s">%s</a>' % (name, name)
2621
2622 contents = html.multicolumn(names, bltinlink)
2623 contents = heading + html.bigsection(
2624 'Keywords', 'index', contents)
2625 return 'Keywords', contents
2626
2627 def html_topicpage(topic):
2628 """Topic or keyword help page."""

Callers 1

get_html_pageFunction · 0.85

Calls 5

sortedFunction · 0.85
multicolumnMethod · 0.80
bigsectionMethod · 0.80
headingMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected