PEP 284, Integer for-loops

Skip Montanaro skip at pobox.com
Wed Mar 6 12:08:15 EST 2002


    David>   for_test: target_list "in" expression_list |
    David>             or_expr less_comp or_expr less_comp or_expr |
    David>             or_expr greater_comp or_expr greater_comp or_expr

Why is an or_expr non-terminal between the two comparisons?  Shouldn't it be
a target_list?

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list