|
None | __init__ (self, Union[str, IO[str]] path, str mode, str encoding="utf-8", **kwargs) |
|
| __enter__ (self) |
|
| __exit__ (self, exc_type, exc_value, traceback) |
|
|
| _path |
|
| _mode |
|
| _encoding |
|
| _open_kwargs |
|
| _file |
|
| _temp_file |
|
A class to handle atomic writes to a file.
This class can be used to perform atomic writes to a file. Atomic writes ensure
that the file contents are always correct and that concurrent writes do not
end up writing to the same file at the same time.
The documentation for this class was generated from the following file: