keyword.softkwlist
keyword.softkwlist is a Python function in the Keyword Module category. A list of Python soft keywords (that can be used as identifiers). The syntax is keyword.softkwlist. Returns: List of soft keyword strings. A typical example: keyword.softkwlist # ["_", "case", "match", "type"] (Python 3.10+). A close sibling is keyword.iskeyword(), which returns True if s is a Python keyword. A close sibling is keyword.kwlist, which a list of all Python keywords in the current version. More about this category: Python keyword testing — iskeyword, kwlist, softkwlist. Related Keyword Module entries: keyword.iskeyword(), keyword.kwlist. This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try keyword.softkwlist immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.