On Thu, 09 Aug 2007 12:47:10 -0700, billiejoex wrote:

>>>> fd, filename = tempfile.mkstemp()
>>>> type(fd)
> <type 'int'>
> 
> I would expect a file descriptor, not and integer.
> How do I have to use it?

File descriptors are integers.  It's a low level C thing.  Either use the
low level functions in `os` or open the file with the `filename`.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to