tempfile behavior

greg greg at cosc.canterbury.ac.nz
Fri Aug 10 05:14:23 EDT 2007


Marc 'BlackJack' Rintsch wrote:
> 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`.

In particular, os.fdopen(fd) will give you a
file object.

--
Greg



More information about the Python-list mailing list