Am 13.03.2012 01:27, schrieb Ronan Lamy:
A global cache would keep objects alive indefinitely, which might be a
problem, even though the cache currently tends to do that anyway.

How about using weak references?
See http://docs.python.org/library/weakref.html .

There seem to be a few caveats and gotchas there.
I don't know whether they'd affect SymPy's caches though.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
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/sympy?hl=en.

Reply via email to