Re: file locked for writing

2008-05-14 Thread Dmitry Teslenko
On Wed, May 14, 2008 at 11:04 AM, Dmitry Teslenko <[EMAIL PROTECTED]> wrote: > When I've rewrite code something like that: >with open(backup_file_name, 'w') as backup_file: >. > >filter.parse('') >del input, output, filter > os.re

Re: file locked for writing

2008-05-14 Thread Dmitry Teslenko
On Wed, May 14, 2008 at 8:18 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 13 May 2008 11:57:03 -0300, Dmitry Teslenko <[EMAIL PROTECTED]> > Is the code above contained in a function? So all references are released > upon function exit? Yes, it's a function > If not, you could try

Re: file locked for writing

2008-05-13 Thread Gabriel Genellina
En Tue, 13 May 2008 11:57:03 -0300, Dmitry Teslenko <[EMAIL PROTECTED]> escribió: Hello! I use some script in python 2.5 from vim editor (it has python bindings) that updates some file and then launches another program (ms visual studio, for example) to do something with updated file. I faced

file locked for writing

2008-05-13 Thread Dmitry Teslenko
Hello! I use some script in python 2.5 from vim editor (it has python bindings) that updates some file and then launches another program (ms visual studio, for example) to do something with updated file. I faced problem when updated file is locked for writing until vim editor is closed. launch vim