El dc 08 de 03 del 2006 a les 13:25 -0800, en/na Andrew Straw va
escriure:
> Well, I've implemented an exit function using the atexit.register() 
> function to properly close the file, at least where possible. I suspect 
> this would have saved me from my rather careless action, but I don't 
> plan on depending on this in the future -- I hope this will be a 
> last-resort feature of my code rather than a heavily-depended upon 
> feature. :)
> 
> Anyhow, perhaps pytables could do something similar internally -- 
> maintain a list of open files and register its own exit function with 
> atexit.register() to make sure this sort of thing could be prevented in 
> the future? It won't prevent against all unexpected program closes (e.g. 
> signals) but my preliminary tests shows it does get called with ctrl-c. 
> It should only be a few lines of code.

Right, in fact I thought about something like this some time ago, but
never implemented it :-(

Well, thanks for the suggestion! We will definitely look forward to
include it in forthcoming 1.3 release.

Cheers,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to