Hi!

I think I made a progress in understanding why @parallel works well
with pid, but not well with the double-underscore __local_tmpile
attribute.

The @parallel decorator calls p_iter_fork, and this calls
sage.interfaces.quit.invalidate_all.

So, let us see what happens:

sage: s = gap._local_tmpfile()
sage: p = gap.pid()
sage: sage.interfaces.quit.invalidate_all()
sage: p == gap.pid()
False
sage: s == gap._local_tmpfile()
True

Apparently the cache for _local_tmpfile is not cleared when an
interface is quit. I guess that explains why caching did not properly
work.

So, I'll try to fix the Expect.quit() method.

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