[ python-Bugs-1505081 ] Wrong grammar
SourceForge.net
noreply at sourceforge.net
Tue Jun 13 08:50:32 CEST 2006
Bugs item #1505081, was opened at 2006-06-12 19:19
Message generated for change (Settings changed) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1505081&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
>Group: Not a Bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Milind (t-milich)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong grammar
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2006-06-13 02:50
Message:
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).
----------------------------------------------------------------------
Comment By: Georg Brandl (gbrandl)
Date: 2006-06-13 02:00
Message:
Logged In: YES
user_id=849994
What problem does this cause for you?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1505081&group_id=5470
More information about the Python-bugs-list
mailing list