Martin v. Löwis wrote:
That's not the full syntax. The full syntax is
[ <test> for <exprlist> in <testlist> <list-iter-opt> ]
where
<test> can be an arbitrary expression: and, or, lambda, +, -, ... <exprlist> can be a list of expression, except for boolean and relational expressions (but I think this is further constrained semantically) <testlist> list a list of tests <list-iter-opt> is optional, and can be another for or if block
Aren't these names a bit mixed up w.r.t. what's in that position?
The names come directly from the grammar file (Grammar/Grammar) and thus have multiple uses. Basically ignore the actual names and just consider them placeholders.
-Brett _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com