Stefan Behnel wrote: > Robert Bradshaw, 13.03.2010 09:25: >>>>>> e = None >>>>>> try: raise ValueError >>> ... except ValueError as e: pass >>> ... >>>>>> e >> In the face of differing behavior Cython follows Python 2.x scoping >> conventions, e.g. the same issue arises for list comprehensions. > > It's actually very easy for the exception case. You could have Py2 scoping for > > except ValueError, e: > > and Py3 scoping for > > except ValueError as e:
-1 from me on that one -- way too obscure. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
