Lisandro Dalcin, 13.03.2010 23:46:
>>>>            if s.sy == ',':
>>>>                s.next()
>>>>                exc_value = p_simple_expr(s)
>>>> +        elif s.sy == 'IDENT' and s.systring == 'as':
>>>> +            s.next()
>>>> +            exc_value = p_simple_expr(s)
>
> I did not merged the conditions, just in case we later decide on a -3
> switch for Python 3 semantics... BTW, I've left a commented block with
> what I understand it should be the semantics for Python 3 (please,
> review).

If we allow Py3 syntax, we should enforce the Py3 grammar correctly at this 
point, i.e. not allow arbitrary expressions as target but only names. I 
changed it to use the code that you provided as alternative.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to