A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-April/078930.html below:

[Python-Dev] Warn about mktemp once again?

[Python-Dev] Warn about mktemp once again? [Python-Dev] Warn about mktemp once again?skip at pobox.com skip at pobox.com
Tue Apr 29 01:35:28 CEST 2008
    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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4