| Trees | Indices | Help |
|
|---|
|
|
object --+
|
proxy.objectproxy.ObjectProxy --+
|
atomic_ofstream
Write a file atomically via os.rename(). Atomic replacement prevents interprocess interference and prevents corruption of the target file when the write is interrupted (for example, when an 'out of space' error occurs).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Opens a temporary filename.pid in the same directory as filename.
|
|
x.__getattribute__('name') <==> x.name
|
Closes the temporary file, copies permissions (if possible), and performs the atomic replacement via os.rename(). If the abort() method has been called, then the temp file is closed and removed. |
If an error occurs while writing the file, the user should call this method in order to leave the target file unchanged. This will call close() automatically. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat May 18 16:59:29 2013 | http://epydoc.sourceforge.net |