On 5/20/07, Michel <[EMAIL PROTECTED]> wrote:
>
> While doing "singular.interact()" I see that lots and lots
> of variables (named: sage*) are being defined in the singular
> interface.
> Basically for every intermediate result and then some.
> I have not looked in detail but are these variables recycled when the
> corresponding python object goes out of scope?

They are not reused.  The code is there in interfaces/singular.py,
but it's not used right now because everything I tried to reuse
or clear variables in Singular resulted in all kinds of problems,
probably partly because Singular is somewhat statically typed.
I've always meant to look into this again.   In the other interfaces
(which are all dynamically typed) variables are recycled when they
aren't used anymore.

> Otherwise this is a memory leak (these variables usual contain
> polynomials).

Indeed.   Please feel free to work on fixing this.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to