pydoc > keyword

πŸ“› NAME

keyword - Keywords (from "Grammar/python.gram")

πŸš€ Quick Reference

Use CaseCommandDescription
Check if a string is a keywordimport keyword; keyword.iskeyword('if')Returns True if the string is a hard keyword
Check if a string is a soft keywordkeyword.issoftkeyword('match')Returns True for context‑dependent soft keywords
Get all hard keywordskeyword.kwlistList of strings for all Python hard keywords
Get all soft keywordskeyword.softkwlistList of strings for all Python soft keywords

πŸ“š 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

πŸ“¦ DATA

πŸ“ FILE

/usr/lib/python3.10/keyword.py

keyword
πŸ“› NAME πŸš€ Quick Reference πŸ“š MODULE REFERENCE πŸ“ DESCRIPTION βš™οΈ FUNCTIONS πŸ“¦ DATA πŸ“ FILE

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 13:20 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format