What does "condition list" mean in the documentation for eval()?

Hello! Thank you very much, this helps a lot.

Based on my understanding its role seems to be superseded by the rule expressively named expressions. In the relevant section of the Language Reference describing the starting symbol when parsing for eval(), the term used is expression_list.

Anyway, I think for clarity the documentation for eval() may simply replace the reference to “condition list” with a concrete link to the expression_list in the Language Reference, to the effect of

The expression argument is parsed and evaluated as a Python expression (termed “expression list” in the Language Reference) using the globals and locals dictionaries as global and local namespace.

which I feel is clearer than the current text.

1 Like