[Scipy-tickets] [SciPy] #1501: import in member function causes object to persist

SciPy Trac scipy-tickets@scipy....
Tue Aug 23 10:59:22 CDT 2011


#1501: import in member function causes object to persist
----------------------------------------+-----------------------------------
 Reporter:  gertjan                     |       Owner:  somebody   
     Type:  defect                      |      Status:  new        
 Priority:  normal                      |   Milestone:  Unscheduled
Component:  Other                       |     Version:  0.8.0      
 Keywords:  import, garbage collection  |  
----------------------------------------+-----------------------------------

Comment(by gertjan):

 I am surprised that you can reproduce this problem with other modules like
 numpy and multiprocessing. I just tried again with these two and for me
 the effect remains limited to scipy.

 Also when I try the above in either python or idle (both 2.7) I cannot
 reproduce the output. The problem persists. I notice that your version of
 ScyPy is newer so it might suggest that the problem has already been
 fixed. But that does not match with your observations runnning it as a
 script.

 The way I understand basic (non-cyclic) garbage collection it frees an
 object the moment the reference count drops to zero. It is not obvious to
 me where a delay would stem from.

 All considering I am not convinced that this issue is not scipy specific.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1501#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list