I don't know. I personally do not have experience with PyDev. If you don't see the message about PyTables closing files, then there is a high probability that it does not do that. In this case, your suggestion on using try-except-finally block is your best bet, IMO.
Francesc On 4/2/12 2:59 PM, Daπid wrote: > I noticed that if a program raises an error, it shows a message > indicating the file is closed, but it doesn't show anything if I > terminate it from outside (in my case, stop from PyDev). > > Is it being flushed? Is there any way of doing that, apart from > enveloping the whole program in a try-except-finally block? > > On Mon, Apr 2, 2012 at 9:48 PM, Francesc Alted<fal...@pytables.org> wrote: >> On 4/2/12 12:38 PM, Alvaro Tejero Cantero wrote: >>> Hi, >>> >>> should PyTables flush on __exit__ ? >>> https://github.com/PyTables/PyTables/blob/master/tables/file.py#L2164 >>> >>> it is not clear to me if a File.close() call results in automatic >>> flushing all the nodes, since Node()._f_close() promises only "On >>> nodes with data, it may be flushed to disk." >>> https://github.com/PyTables/PyTables/blob/master/tables/node.py#L512 >> Yup, it does flush. The message should be more explicit on this. >> >> -- >> Francesc Alted >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Pytables-users mailing list >> Pytables-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pytables-users > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Pytables-users mailing list > Pytables-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pytables-users -- Francesc Alted ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users