On 12 March 2010 15:17, Lisandro Dalcin <[email protected]> wrote: > On 12 March 2010 15:01, Stefan Behnel <[email protected]> wrote: >> Lisandro Dalcin, 12.03.2010 07:21: >>> What do you think? I'd be surprised if I'm not missing something, but >>> this is an starter... >> >> Hmm, interesting. Looks like I forgot to open a ticket for that when I went >> through the Py3 syntax differences lately. So you'll have to do that >> yourself (just for documentation purposes, pushing this fix is fine with >> me, as long as you add a couple of tests). >>
http://trac.cython.org/cython_trac/ticket/519 http://hg.cython.org/cython-devel/rev/6834b6f640ae >> >>> 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) >> >> Personally, I'd merge the two conditions into one, but that's just >> aesthetics. >> 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). -- Lisandro Dalcin --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
