Hi!

There is one more issue:
sage: print gap._local_tmpfile()
/home/king/.sage//temp/gauss/16746//interface//tmp16746
sage: print singular._local_tmpfile()
/home/king/.sage//temp/gauss/16746//interface//tmp16746

If gap and singular share one _local_tmpfile, there is another
potential source of trouble.

But I think I can solve the problem:
 * sage/interfaces/expect.py defines a function
tmp_expect_interface_local that returns a filename that is returned by
gap/singular/...._local_tmpfile().
 * The file name is formed using os.getpid(). However, this PID is not
the PID associated with the interface instance. So, different
interfaces get the *same* file name.
 * My solution: tmp_expect_interface_local should accept an argument,
namely an interface instance. Instead of calling os.getpid(), the
method pid() of that interface instance is called

Doing so, the gap and singular interfaces get different file names,
and moreover the trouble with the @parallel decorator vanishes. Patch
to be posted very soon...

Cheers,
Simon

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to