By the way, the next release of pyparsing will allow you to shortcut
all of these .setResultsName calls, using this notation instead:

binop = ( LPAR +
            oneOf("+ -")('op') +
            wae('lhs') +
            wae('rhs') + RPAR )
with_ = ( LPAR + "with" + LPAR +
            id_('bound_id') +
            wae('named_expr') + RPAR +
            wae('bound_body') + RPAR )

This is implemented in the latest version in the SF SVN repository.

-- Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to