avoiding file corruption

Paolo Pantaleo paolopantaleo at gmail.com
Sun Aug 27 05:22:35 EDT 2006


27 Aug 2006 00:44:33 -0700, Amir  Michail <amichail at gmail.com>:
> Hi,
>
> Trying to open a file for writing that is already open for writing
> should result in an exception.
>
> It's all too easy to accidentally open a shelve for writing twice and
> this can lead to hard to track down database corruption errors.
>
> Amir
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Even if it could be strange, the OS usually allow you to open a file
twice, that's up to the programmer to ensure the consistency of the
operations.

PAolo



-- 
if you have a minute to spend please visit my photogrphy site:
http://mypic.co.nr



More information about the Python-list mailing list