Re: [Python-Dev] Rationale for NamedTemporaryFile revisited [SEC=UNCLASSIFIED]

2008-01-19 Thread Graham Horler
On 18 Jan 2008, 06:42:26, Steve Holden wrote: > [EMAIL PROTECTED] wrote: > > Thank you very much for the quick reply. > > > > I believe we have to close the file in order be able to read it in - in this > > case to feed a unittest. I actually tried to read it in before closing it, > > but (as I s

Re: [Python-Dev] Rationale for NamedTemporaryFile revisited [SEC=UNCLASSIFIED]

2008-01-17 Thread Steve Holden
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guido > van Rossum > Sent: Friday, 18 January 2008 3:45 > To: Nielsen Ole > Cc: python-dev@python.org > Subject: Re: [Python-Dev] Rationale for NamedTemporaryFile revisited > [SEC=UNCLASSIFIED] > >

Re: [Python-Dev] Rationale for NamedTemporaryFile revisited [SEC=UNCLASSIFIED]

2008-01-17 Thread Ole.Nielsen
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guido van Rossum Sent: Friday, 18 January 2008 3:45 To: Nielsen Ole Cc: python-dev@python.org Subject: Re: [Python-Dev] Rationale for NamedTemporaryFile revisited [SEC=UNCLASSIFIED] Don't close it until you're done with it. Isn

Re: [Python-Dev] Rationale for NamedTemporaryFile revisited [SEC=UNCLASSIFIED]

2008-01-17 Thread Guido van Rossum
Don't close it until you're done with it. Isn't that obvious? On Jan 17, 2008 8:30 PM, <[EMAIL PROTECTED]> wrote: > I found this posting, and those following it, as I too am baffled that > NamedTemporaryFile doesn't let you read the generated file - even within the > same script. > For unit testi