Documentation
Issue
The documentation for eval() uses the term "condition list", which does not correspond to any construct in the current Python grammar.
As a result, it is unclear what grammar element this term is intended to refer to.
The source argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the globals and locals mappings as global and local namespace.
Suggested fixes (choose one):
- Replace "condition list" with "expression list"
- Remove "(technically speaking, a condition list)". since this is already self-evident as "expressions" in the PEG grammar.
Background
In Python 1.3, the term "condition list" appeared in eval() as well as in the Expressions and Statements sections(ref5,6,7) of the documentation.
In Python 1.4, the term "condition list" no longer appeared in these references(except in eval()).
This suggests that the remaining occurrence in eval() is likely an oversight from that transition.
Linked PRs
Documentation
Issue
The documentation for
eval()uses the term "condition list", which does not correspond to any construct in the current Python grammar.As a result, it is unclear what grammar element this term is intended to refer to.
Suggested fixes (choose one):
Background
In Python 1.3, the term "condition list" appeared in
eval()as well as in the Expressions and Statements sections(ref5,6,7) of the documentation.In Python 1.4, the term "condition list" no longer appeared in these references(except in
eval()).This suggests that the remaining occurrence in
eval()is likely an oversight from that transition.Linked PRs