Re: tempfile Question

2006-06-07 Thread John Machin
On 8/06/2006 2:57 AM, Dennis Lee Bieber wrote: > On Wed, 07 Jun 2006 21:53:02 +1000, John Machin <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I passed over mkstemp() because (according to my reading of the manual), >> mkstemp() requires an *extra* step (close the file),

Re: tempfile Question

2006-06-07 Thread Steve Holden
John Machin wrote: > On 7/06/2006 3:57 PM, Dennis Lee Bieber wrote: > >>On Wed, 07 Jun 2006 09:56:13 +1000, John Machin <[EMAIL PROTECTED]> >>declaimed the following in comp.lang.python: >> >> >>>The dir, prefix and suffix parameters are passed to mkstemp(). >> >> >> >>>So I'd be thinking ab

Re: tempfile Question

2006-06-07 Thread John Machin
On 7/06/2006 3:57 PM, Dennis Lee Bieber wrote: > On Wed, 07 Jun 2006 09:56:13 +1000, John Machin <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> The dir, prefix and suffix parameters are passed to mkstemp(). > >> So I'd be thinking about using the (deprecated) mktemp

Re: tempfile Question

2006-06-06 Thread John Machin
On 7/06/2006 7:50 AM, Gregory Piñero wrote: > Hey group, > > I have a command line tool that I want to be able to call from a > Python script. The problem is that this tool only writes to a file. > Another Fantastic Manual gives another idea: """ Pdftotext reads the PDF file, PDF-file,

Re: tempfile Question

2006-06-06 Thread John Machin
On 7/06/2006 7:50 AM, Gregory Piñero wrote: > Hey group, > > I have a command line tool that I want to be able to call from a > Python script. The problem is that this tool only writes to a file. > > So my solution is to give the tool a temporary file to write to and > then have Python read that