[PATCH] AtomicFile should close() on deconstruction

Martin Pool mbp at sourcefrog.net
Thu May 26 16:24:58 BST 2005


On 25 May 2005, John A Meinel <john at arbash-meinel.com> wrote:
> Right now AtomicFile leaves a bogus file if it is not committed or
> aborted. The attached patch has it close on deconstruct (which means
> abort if file is not already closed).

Given the previous conversation about the shortcomings of __del__,
perhaps it should just warn instead?

-- 
Martin




More information about the bazaar mailing list