homepage

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: Wrong grammar
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, t-milich, tim.peters
Priority: normal Keywords:

Created on 2006年06月12日 23:19 by t-milich, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (3)
msg28791 - (view) Author: Milind (t-milich) Date: 2006年06月12日 23:19
The Python and test is written as:
and_test ::= not_test | and_test "and" not_test 
It should be changed to :
and_test ::= not_test | not_test "and" and_test
msg28792 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006年06月13日 06:00
Logged In: YES 
user_id=849994
What problem does this cause for you?
msg28793 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006年06月13日 06:50
Logged In: YES 
user_id=31435
The grammar is correct as-is anyway, so closing this as
invalid ("and" is left-associative, that's critical to
correct understanding of its short-circuit semantics, and
the production for and_test is left-recursive to make that
clear: "a and b and c" must be parsed as "(a and b) and c",
not as "a and (b and c)" as the suggested change would force).
History
Date User Action Args
2022年04月11日 14:56:18adminsetgithub: 43492
2006年06月12日 23:19:27t-milichcreate

AltStyle によって変換されたページ (->オリジナル) /