Re: [Pytables-users] flush on __exit__

2012-04-02 Thread Daπid
People here say that it is killing the process: http://stackoverflow.com/questions/1261597/eclipsepydev-cleanup-functions-arent-called-when-pressing-stop So there is no way of fixing that, from any language. David. On Mon, Apr 2, 2012 at 10:55 PM, Francesc Alted wrote: > I don't know. I perso

Re: [Pytables-users] flush on __exit__

2012-04-02 Thread Francesc Alted
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,

Re: [Pytables-users] flush on __exit__

2012-04-02 Thread Daπid
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-fin

Re: [Pytables-users] flush on __exit__

2012-04-02 Thread Francesc Alted
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 onl