Guido van Rossum 1c917072ca Very subtle syntax change: in a list comprehension, the testlist in
"for <var> in <testlist> may no longer be a single test followed by
a comma.  This solves SF bug #431886.  Note that if the testlist
contains more than one test, a trailing comma is still allowed, for
maximum backward compatibility; but this example is not:

    [(x, y) for x in range(10), for y in range(10)]
                              ^

The fix involved creating a new nonterminal 'testlist_safe' whose
definition doesn't allow the trailing comma if there's only one test:

    testlist_safe: test [(',' test)+ [',']]
2001-10-15 15:44:05 +00:00
..
2001-01-25 20:04:14 +00:00
2001-08-02 04:15:00 +00:00
2001-08-10 21:38:04 +00:00
2001-08-10 20:28:28 +00:00
2001-08-02 04:15:00 +00:00
2001-03-02 06:10:17 +00:00
2001-09-28 17:15:23 +00:00
2001-10-05 21:55:19 +00:00
2001-10-05 22:06:45 +00:00