Re: using NamedTemporaryFile on windows

2005-12-29 Thread Tim Peters
[Peter Hansen] >>> What I don't understand is why you _can't_ reopen the NamedTemporaryFile >>> under Windows when you can reopen the file created by mkstemp (and the >>> files created by TemporaryFile are created by mkstemp in the first place). [Lee Harr] >> Are you saying you tried it and you ac

Re: using NamedTemporaryFile on windows

2005-12-29 Thread Peter Hansen
Lee Harr wrote: > On 2005-12-29, Peter Hansen <[EMAIL PROTECTED]> wrote: >>What I don't understand is why you _can't_ reopen the NamedTemporaryFile >>under Windows when you can reopen the file created by mkstemp (and the >>files created by TemporaryFile are created by mkstemp in the first place).

Re: using NamedTemporaryFile on windows

2005-12-29 Thread Chris Lambacher
On Thu, Dec 29, 2005 at 12:40:34AM -0500, Peter Hansen wrote: > > What I don't understand is why you _can't_ reopen the NamedTemporaryFile > under Windows when you can reopen the file created by mkstemp (and the > files created by TemporaryFile are created by mkstemp in the first place). Basica

Re: using NamedTemporaryFile on windows

2005-12-29 Thread Lee Harr
On 2005-12-29, Peter Hansen <[EMAIL PROTECTED]> wrote: > Lee Harr wrote: >> Is there any other reason to use a named tempfile other than >> to be able to open it again? > As it says, if you *don't close* the file, you can open it again if you > are on a platform which supports that. > Ok. I just

Re: using NamedTemporaryFile on windows

2005-12-28 Thread Peter Hansen
Lee Harr wrote: > Is there any other reason to use a named tempfile other than > to be able to open it again? I am trying to understand this > section of the documentation regarding NamedTemporaryFile: > > """ > Whether the name can be used to open the file a second time, while the named > tempor

using NamedTemporaryFile on windows

2005-12-28 Thread Lee Harr
Is there any other reason to use a named tempfile other than to be able to open it again? I am trying to understand this section of the documentation regarding NamedTemporaryFile: """ Whether the name can be used to open the file a second time, while the named temporary file is still open, var