[MERGE][Win32] explicit close of file in textfile
mbp at sourcefrog.net
Fri May 5 05:56:55 BST 2006
On 04/05/2006, at 8:31 PM, Alexander Belchenko wrote:
> John Arbash Meinel пишет:
>> +1 from me. Though I honestly believe that CPython will have
>> closed the
>> file either by the time text_file is done, or by the time
>> check_text_path is done.
>> If you are seeing otherwise, I would be interested to hear about it.
> IMHO, Python close file when collect garbage, but not at exit of
> function. Because garbage collector has some period of work we have
> condition. This is almost newer happens when bzr execute commands from
> command line, but very often happens during selftest. Probably because
> of different execution path.
Well, the test suite generally deletes all the files it created
fairly soon after it finishes writing to them, which is not the case
in general use. So it will tend to trap on Windows if any are left
More information about the bazaar