#10548: ModularSymbols_clear_cache() not clearing everything?
-----------------------------+----------------------------------------------
Reporter: mderickx | Owner: craigcitro
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: modular forms | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by mderickx):
Here is some code run on sage 4.6.1 showing that it is really the coercion
framework.
{{{
sage: import gc
sage: import objgraph
sage: import inspect
sage: m=ModularSymbols(Gamma1(29),use_cache=False)
sage: m=[]
sage: ModularSymbols_clear_cache()
sage: gc.collect()
54
sage: a=[x for x in gc.get_objects() if
isinstance(x,sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1)]
sage:
l=objgraph.find_backref_chain(a[0],inspect.ismodule,max_depth=15,extra_ignore=[id(a)])
sage: map(type,l)
[<type 'module'>, <type 'dict'>, <type
'sage.structure.coerce.CoercionModel_cache_maps'>, <type 'list'>, <type
'tuple'>, <type 'traceback'>, <type 'frame'>, <type 'frame'>, <type
'frame'>, <type 'frame'>, <class
'sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1_with_category'>]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10548#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.