What do you think? I'd be surprised if I'm not missing something, but
this is an starter...
diff -r 3932a0be3b6b Cython/Compiler/Parsing.py
--- a/Cython/Compiler/Parsing.py Thu Mar 11 18:57:06 2010 -0300
+++ b/Cython/Compiler/Parsing.py Fri Mar 12 03:18:28 2010 -0300
@@ -1334,6 +1334,9 @@
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)
body = p_suite(s)
return Nodes.ExceptClauseNode(pos,
pattern = exc_type, target = exc_value, body = body)
--
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