#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:                 |  
-----------------------------+----------------------------------------------
Description changed by mderickx:

Old description:

> When I was doing some computations on modular forms, I noticed that the
> ModularSymbols_clear_cache() was not doing what it claims to do.
>
> {{{
> sage: import gc
> sage: ModularSymbols(Gamma1(29),sign=1)
> Modular Symbols space of dimension 49 for Gamma_1(29) of weight 2 with
> sign 1 and over Rational Field
> sage: ModularSymbols_clear_cache()
> sage: gc.collect()
> 57
> sage: [x for x in gc.get_objects() if
> isinstance(x,sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1)]
> [Modular Symbols space of dimension 49 for Gamma_1(29) of weight 2 with
> sign 1 and over Rational Field]
> sage:
> }}}
> So even after garbage collection the modular symbols element is still in
> memory.

New description:

 When I was doing some computations on modular forms, I noticed that the
 ModularSymbols_clear_cache() was not doing what it claims to do.

 {{{
 sage: import gc
 sage: m=ModularSymbols(Gamma1(29),sign=1)
 sage: m=[]
 sage: ModularSymbols_clear_cache()
 sage: gc.collect()
 57
 sage: [x for x in gc.get_objects() if
 isinstance(x,sage.modular.modsym.ambient.ModularSymbolsAmbient_wtk_g1)]
 [Modular Symbols space of dimension 49 for Gamma_1(29) of weight 2 with
 sign 1 and over Rational Field]
 sage:
 }}}
 So even after garbage collection the modular symbols element is still in
 memory.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10548#comment:9>
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.

Reply via email to