[Python-ideas] BackupFile
Masklinn
masklinn at masklinn.net
Mon Jun 25 16:23:00 CEST 2012
On 2012-06-25, at 15:59 , Christian Heimes wrote:
> Am 25.06.2012 14:17, schrieb Kim Gräsman:
>> Hello,
>>
>> I'm new here, so forgive me if this has been discussed before or is off-topic.
>>
>> I came up with a mechanism that I thought might be useful in the
>> Python standard library -- a scope-bound self-restoring backup file. I
>> came to this naïve implementation;
>
> Are you aiming for atomic file rollover backed by a temporary file?
No, see my mail and his confirmation, it's a shim to dynamically (scope-wise)
rewrite sections of a configuration file (and undo the rewrites thereafter)
because that's the sole way to configure a third-party library.
More information about the Python-ideas
mailing list