En Mon, 14 Jun 2010 11:57:20 -0300, Nathan Huesken
escribió:
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?
py> import os
py> help(os.fdopen)
Help on built-in function fdopen in module nt:
fdopen(
On 6/14/10 9:57 AM, Nathan Huesken wrote:
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?
Thomas Jollans' advice is likely best, but to answer your specific question, use
os.fdopen() to make a fil
On 06/14/2010 04:57 PM, Nathan Huesken wrote:
> 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?
the builtin open function should work.
http://docs.python.org/py3k/library/functions.html#open
A
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
--
http://mail.python.org/mailman/listinfo/python-list