File descriptor to file object

Nathan Huesken python at lonely-star.org
Mon Jun 14 10:57:20 EDT 2010


Hi,

tempfile.mkstemp returns a file name and a file descriptor (as returned
by os.open). Can I somehow convert this descriptor to a file object?

Thanks!
Nathan



More information about the Python-list mailing list