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

Reply via email to