Re: [Pytables-users] File instances and WeakValueDictionaries

2009-02-03 Thread Francesc Alted
A Tuesday 03 February 2009, [email protected] escriguĂ©: > Francesc Alted wrote: > > At least each open node keeps a reference to the File object. So, > > in order to remove the File object you must close the nodes that > > reference to them. See the File.close() for an example on how to > > d

Re: [Pytables-users] File instances and WeakValueDictionaries

2009-02-03 Thread AFoglia
Francesc Alted wrote: > At least each open node keeps a reference to the File object. So, in > order to remove the File object you must close the nodes that reference > to them. See the File.close() for an example on how to do this. I > don't know if I have addressed your issue, but if not, p

Re: [Pytables-users] File instances and WeakValueDictionaries

2009-01-28 Thread Francesc Alted
Hi Anthony, A Wednesday 28 January 2009, [email protected] escriguĂ©: > I have a class that reads data from a number of HDF5 files, and to > save time opening them, I'm trying to use a WeakValueDictionary as a > simple cache. But File objects seem to have more references than > just the

[Pytables-users] File instances and WeakValueDictionaries

2009-01-27 Thread AFoglia
I have a class that reads data from a number of HDF5 files, and to save time opening them, I'm trying to use a WeakValueDictionary as a simple cache. But File objects seem to have more references than just the label returned from openFile. In [1]: import weakref In [2]: import tables