On 27 April 2015 at 12:31, Dima Pasechnik <dimp...@gmail.com> wrote:
> ...
> On Monday, 27 April 2015 17:23:50 UTC+1, Bill Page wrote:
>>
>> On the original point of this thread:  Is there anything wrong with
>> just grabbing the 'fricas.py' source from somewhere, changing it,
>> and then importing it into an SMC/Sage worksheet?
>
> IMHO the problem is actually in axiom.py, where eval stuff is defined.
> fricas interface inherits from there.
> So you'll have to modify the corresponding function from axiom.py,
> so that it overwrites the one inherited.
>

Yes you are right. The problem was in the original axiom.py. Here is a
patch that corrects the problem:

https://github.com/billpage/sage/commit/237df92ef4e6b5117654f3a3ff71b4aa10b0aa36#diff-60c84efff9cc620d4d8bbd8110321ffd

>
> Presumably you can overwrite the any Python function/class in an
> SMC worksheet, but I never tried this. Seems error-prone to me :-)
>

This worked fine for me.  In addition to fricas.py and axiom.py I also
had to copy expect.py, cleaner.py and quit.py (imports of axiom.py)
into the same directory.

See:

https://cloud.sagemath.com/projects/4bc39013-7b65-4a65-9d3d-bec4a4ce4d5a/files/2015-04-23-150720.sagews

Bill.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to