public class PythonLanguage extends Object
Canonical LanguageProfile factory and vocabulary definitions for Python (.py, .pyw, .pyi).
Includes Python 3.12 keywords (match, case, type, async, await, nonlocal), built-in types and functions, f/r/b/u string prefixes, and triple-quoted strings.
import klyn.code.python
profile = PythonLanguage.profile()
assert profile.id == "python"
assert profile.isKeyword("def")
assert profile.isConstant("None")| Modifier and Type | Member | Description |
|---|---|---|
| public static | profileprofile() as LanguageProfile |
Returns the shared singleton LanguageProfile for Python. |