Hello,

On Sat, May 26, 2012 at 12:36 PM, Joachim Durchholz <[email protected]> wrote:
> Am 26.05.2012 11:17, schrieb Sergiu Ivanov:
>
>>     except CoercionFailed as e:
>>                            ^
>> SyntaxError: invalid syntax
>>
>> I can try to fix this according to
>> http://www.gossamer-threads.com/lists/python/python/785327 .  Is this
>> going to intervene with anyone else's attempts?
>
>
> If it's Python3 syntax, it shouldn't.
> We're programming in Python2 and use 2to3 to translate Python2 idioms to
> Python3, so any occurrence of "except Exception, variable" should
> automatically be taken care of and translated to "except Exception as
> variable".

I can see that commit

commit 1226589be668078335d5a1f50c45b4dbd0194f6d
Author: Tom Bachmann <[email protected]>
Date:   Wed Apr 4 19:59:20 2012 +0100

    [polys] implement __div__ for DMP.

Introduces this line an number of times:

+            except CoercionFailed as e:

which then causes the failure with Python 2.5, because `as` is not yet
supported in Python 2.5.  It doesn't look like it has anything to do
with Python 3.

There also a number of this `as`-related failures in that file.  I
have re-done everything to the older `CoercionFailed, e` version.  Now
./setup.py test starts normally.  I'll see if all the tests pass and
will submit a pull request.

Sergiu

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to