Skip to content

Outdated term “condition list” in eval() documentation #153808

Description

@tenmyo

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):

  1. Replace "condition list" with "expression list"
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions