[sage-devel] Re: Problem with pickling in dsage

2009-02-16 Thread ThePriest
Hi, I continued working on the problem. And I found a solution. Here's what I was looking for: sage: D=dsage.start_all() sage: def f(n,m): ... return n*m ... sage: R=D.map(f, [1,2,3,4,5], [0,1,2,3,4]) This actually does what I want. The error message was confusing me. Would it be

[sage-devel] Re: Problem with pickling in dsage

2009-02-15 Thread mabshoff
On Feb 13, 1:06 pm, ThePriest wrote: Hi, > So I found an easy exemple: > > Script.py contains: > > def f(n): >     return n*n > _ > > D=dsage.start_all() > > from Script import * > > R=D.eval_function(f,((4,{}), job_name='square') > > This give me the exact same error, what should I d

[sage-devel] Re: Problem with pickling in dsage

2009-02-13 Thread ThePriest
So I found an easy exemple: Script.py contains: def f(n): return n*n _ D=dsage.start_all() from Script import * R=D.eval_function(f,((4,{}), job_name='square') This give me the exact same error, what should I do? On 13 fév, 12:08, ThePriest wrote: > D=dsage.start_all() > > fr