On May 28, 2009, at 1:36 AM, Nicolas wrote:

> Hi there,
>
> I have a problem when doing some inheritance from class
> SymbolicArithmetic in sage from version 3.4 and up. There is no
> problem with 3.3. Here is a sample code :
>
> in file classtest.sage put :
> ____
> class test(SymbolicArithmetic):
>       def __init__(self,eq):
>               SymbolicArithmetic.__init__(self,[eq,0],operator.sub)
> ____
>
> then "load classtest.sage" works fine in both in sage 3.3 and sage
> 3.4.2 :
>
> sage: load classtest.sage
> sage: a=test(x)
> sage: a
> x
>
>
>
> But if you add the following file "dummy.sage" :
> ____
> load classtest.sage
> ____
>
> then things work fine in sage.3.3 and give an AttributeError in 3.4.2.
> Is this a bug or am I doing something wrong ?
> Could I get around it by not substracting this 0 which is possibly the
> source of the problem ?
>
> Thank you all in adavance

I'm not sure exactly why this is occurring, but somewhere a raw  
Python int is getting passed into your expression directly. It might  
be good to note however that Symbolics have been completely rewritten  
for Sage 4.0, which will hopefully solve your problem.

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to