[python-win32] lingering open filehandle?

2012-02-08 Thread Andrew Hammond
We're using pycurl to download a file. The file is written to disk in the context of a with statement. Once the file is written, we exit the context and then do an os.rename() to move the downloaded file to it's final destination. Immediately before doing the rename, I confirm that the filehandle

Re: [python-win32] lingering open filehandle?

2012-02-08 Thread Mark Hammond
On 9/02/2012 12:17 PM, Andrew Hammond wrote: We're using pycurl to download a file. The file is written to disk in the context of a with statement. Once the file is written, we exit the context and then do an os.rename() to move the downloaded file to it's final destination. Immediately before