synt.tokens.keywords
¤
hard_keywords
module-attribute
¤
All Python's hard keywords, in string format.
Alias for std library's keyword.kwlist
.
soft_keywords
module-attribute
¤
|
All Python's soft keywords, in string format.
Alias for std library's keyword.softkwlist
.
is_hard_keyword
¤
Check if a string is a hard keyword.
See hard_keywords
for more information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
i |
str
|
The string to check. |
required |
is_soft_keyword
¤
Check if a string is a soft keyword.
See soft_keywords
for more information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
i |
str
|
The string to check. |
required |