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
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 09 Aug 2007 12:47:10 -0700, billiejoex wrote:
fd, filename = tempfile.mkstemp()
type(fd)
>
>
> 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
On 9 Ago, 20:31, [EMAIL PROTECTED] wrote:
> On Aug 9, 11:21 am, billiejoex <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I would like to use tempfile module to generate files having unique
> > names excepting that I don't want them to be removed after closing.
> > Does it is possible?
>
> Looks like
On Aug 9, 11:21 am, billiejoex <[EMAIL PROTECTED]> wrote:
> Hi all,
> I would like to use tempfile module to generate files having unique
> names excepting that I don't want them to be removed after closing.
> Does it is possible?
Looks like tempfile.mkstemp() will do what you want.
'''Unlike Tem