python / cpython

The Python programming language
https://www.python.org
Other
62.2k stars 29.89k forks source link

Docs: grammar definition for executor cases in `Tools/cases_generator/interpreter_definition.md` is outdated #115553

Open sobolevn opened 6 months ago

sobolevn commented 6 months ago

https://github.com/python/cpython/blob/main/Tools/cases_generator/interpreter_definition.md#syntax

At least it does not have pure keyword: https://github.com/python/cpython/blob/351c103134e43c2ee43deb10cdc9afb37b916a4e/Tools/cases_generator/interpreter_definition.md#L80-L88

Maybe something else is missing as well?

sobolevn commented 6 months ago

cc @Fidget-Spinner

Fidget-Spinner commented 6 months ago

Missing a few other stuff like override too, see the list here for what we actually support https://github.com/python/cpython/blob/main/Tools/cases_generator/lexer.py#L219