5. Use proper lists
6. Function references → name(args) — description
7. Escape < and > outside allowed tags
8. Add 🚀 Quick Reference section as second section
Let me build this out:
- NAME → 📛 NAME
- 🚀 Quick Reference (added)
- MODULE REFERENCE → 🔗 MODULE REFERENCE
- DESCRIPTION → 📖 DESCRIPTION
- FUNCTIONS → ⚙️ FUNCTIONS
- DATA → 📊 DATA
- FILE → 📂 FILE
For the Quick Reference, since this is about Python's keyword module, common use cases would be:
- Check if a string is a Python keyword
- Check if a string is a soft keyword
- List all Python keywords
- List all soft keywords
Let me also handle the HTML entity `<==>` which represents `` — that's already escaped so it should pass through.
The DATA section has `__all__ = ['iskeyword', 'issoftkeyword', 'kwlist', 'softkwlist']` — these are code-ish but they're Python data declarations. I'll treat them as code blocks.
Let me also note `kwlist = ['False', 'None', ...` is truncated with `...` — I'll preserve that.
Let me write the HTML now.
📛 NAME
keyword — Keywords (from "Grammar/python.gram")
🚀 Quick Reference
Use Case Command Description
🔍 Check hard keyword keyword.iskeyword("for")Returns True if string is a reserved keyword
🪶 Check soft keyword keyword.issoftkeyword("match")Returns True if string is a soft/reserved keyword
📜 List all keywords keyword.kwlistList of all hard keywords in current Python
🧩 List soft keywords keyword.softkwlistList of all soft (contextual) keywords
✅ Membership check "if" in keyword.kwlistQuick boolean check for keyword membership
🔗 MODULE REFERENCE
https://docs.python.org/3.10/library/keyword.html
⚠️ The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
📖 DESCRIPTION
This file is automatically generated; please don't muck it up! 🚧
To update the symbols in this file, cd to the top directory of
the python source tree and run:
PYTHONPATH=Tools/peg_generator python3 -m pegen.keywordgen \
Grammar/python.gram \
Grammar/Tokens \
Lib/keyword.py
Alternatively, you can run make regen-keyword. 🔄
⚙️ FUNCTIONS
iskeyword = __contains__(...) method of builtins.frozenset instance — x.__contains__(y) <==> y in x.
issoftkeyword = __contains__(...) method of builtins.frozenset instance — x.__contains__(y) <==> y in x.
📊 DATA
__all__ = ['iskeyword', 'issoftkeyword', 'kwlist', 'softkwlist']
kwlist = ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'aw...
softkwlist = ['_', 'case', 'match']
📂 FILE
/usr/lib/python3.10/keyword.py
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 17:01 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)