This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 'Expression' AST Node not documented
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: georg.brandl, mrmiller, nnorwitz, pterk
Priority: normal Keywords:

Created on 2005-06-12 18:27 by mrmiller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg25524 - (view) Author: Martin Miller (mrmiller) Date: 2005-06-12 18:27
Python 2.4.1 documentation
===
The table at the end of section "19.3.1 AST Nodes" 
does not list Node type 'Expression' and its associated
information.

Also, the BNF for 'expression' shown in the file
<http://docs.python.org/ref/grammar.txt>

> expression ::= 
>              or_test | lambda_form

can't be correct because it doesn't cover cases of a
simple literals (or identifiers) such as 42 and simple
binary operator expressions such as 1+2.
msg25525 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-18 20:34
Logged In: YES 
user_id=1188172

To your second comment: the BNF for expression is correct
since or_test can contain and_test which can contain
not_test and so on until primary, atom, literal.
msg25526 - (view) Author: Peter van Kampen (pterk) Date: 2005-06-29 19:24
Logged In: YES 
user_id=174455

I have submitted a (very minimal) doc-patch that adds
expression to the section 19.3.1.
msg25527 - (view) Author: Peter van Kampen (pterk) Date: 2005-06-29 19:26
Logged In: YES 
user_id=174455

See patch #1227568
msg25528 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-10-03 00:37
Logged In: YES 
user_id=33168

Checked in as:
 * lib/asttable.tex 1.3
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42075
2005-06-12 18:27:31mrmillercreate