Guido> IMO mkstemp() is a major pain because you have to use raw file
    Guido> descriptors on the return value. I'd much rather recommend
    Guido> [Named]TemporaryFile which return streams.

Why not:

    fd, fname = tempfile.mkstemp()
    f = os.fdopen(fd)

Seems fairly straightforward to me.

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to