|
From: gary r. <gar...@gm...> - 2011-01-15 10:37:15
|
No problem. This caught me out a long time ago and has also caught out a few people I know. On Fri, Jan 14, 2011 at 8:23 PM, CASOLI Jules <jul...@ce...> wrote: > Hooo, well done! This is it. > > I didn't knew about caching... > I was indeed using ipython, but I did led some test using the basic python interpreter,with same results, so I did not mention this point. > In fact, python's basic interpreter still records the last three outputs. As my tests were really short (plt.close() ; mpl.cbook.report_memory() ; gc.collect() is only two lines before the collect, only o)ne o,f theme outputt ing something) even pyhton's caching was still at work, and the garbage collector could not free anything. > > Thanks a lot, and also thanks to Ben for taking interest ! > > Jules > > PS : Gary, sorry, for the duplicated mail... |