Safely modify a file in place -- am I doing it right?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Jul 1 06:11:06 CEST 2011


steve+comp.lang.python at pearwood.info wrote:

> I have a script running under Python 2.5 that needs to modify files in
> place. I want to do this with some level of assurance that I won't lose
> data. E.g. this is not safe:
> [snip] 

Thanks to all who replied, your comments were helpful.


-- 
Steven




More information about the Python-list mailing list