keyword
--- Python キーワードチェック¶
ソースコード: Lib/keyword.py
This module allows a Python program to determine if a string is a keyword or soft keyword.
- keyword.kwlist¶
インタープリタで定義している全ての キーワード のシーケンス。特定の
__future__
宣言がなければ有効ではないキーワードでもこのリストには含まれます。
- keyword.issoftkeyword(s)¶
Return
True
if s is a Python soft keyword.バージョン 3.9 で追加.
- keyword.softkwlist¶
Sequence containing all the soft keywords defined for the interpreter. If any soft keywords are defined to only be active when particular
__future__
statements are in effect, these will be included as well.バージョン 3.9 で追加.