tempfile behavior
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Aug 9 16:16:38 EDT 2007
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
More information about the Python-list
mailing list