[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: race condition in writing lilypond-book filenames
From: |
Matthias Kilian |
Subject: |
Re: race condition in writing lilypond-book filenames |
Date: |
Tue, 15 Dec 2009 22:00:20 +0100 |
User-agent: |
Mutt/1.4.2.3i |
[sorry for mumbling to myself too much]
On Sun, Dec 13, 2009 at 06:53:57PM +0100, Matthias Kilian wrote:
[...]
> - out = file (path + '.ly', 'w')
> + out = tempfile.NamedTemporaryFile(mode = 'w', suffix = '.lytmp',
> + dir = directory, delete = False)
Unfortunately, this doesn't work with python < 2.6 (because the
`delete' parameter is new since python-2.6).
But if you gyys think that the approach of writing (and later
renaming) temporary files may help, i'll make a better diff tomorrow.
Ciao,
Kili
- race condition in writing lilypond-book filenames, Graham Percival, 2009/12/13
- Re: race condition in writing lilypond-book filenames, Matthias Kilian, 2009/12/13
- Re: race condition in writing lilypond-book filenames, Matthias Kilian, 2009/12/13
- Re: race condition in writing lilypond-book filenames,
Matthias Kilian <=
- Re: race condition in writing lilypond-book filenames, Graham Percival, 2009/12/17
- Re: race condition in writing lilypond-book filenames, Han-Wen Nienhuys, 2009/12/17
- Re: race condition in writing lilypond-book filenames, John Mandereau, 2009/12/23
- Re: race condition in writing lilypond-book filenames, Han-Wen Nienhuys, 2009/12/23
- Re: race condition in writing lilypond-book filenames, John Mandereau, 2009/12/23
Re: race condition in writing lilypond-book filenames, John Mandereau, 2009/12/23