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/078949.html below:

[Python-Dev] Warn about mktemp once again?

[Python-Dev] Warn about mktemp once again? [Python-Dev] Warn about mktemp once again?Guido van Rossum guido at python.org
Tue Apr 29 21:09:02 CEST 2008
On Mon, Apr 28, 2008 at 10:49 PM, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
>  The problem with NamedTemporaryFile is that it deletes
>  the file as soon as you close it, which makes the
>  named-ness of it rather useless, as far as I can see.

Why? You can flush it and then all the data is on the disk.

The whole point of [Named]TemporaryFile is to automate the cleanup as
well as the creation.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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