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

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

steve+comp.lang.python at 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.


More information about the Python-list mailing list