A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2007-March/072086.html below:

[Python-Dev] Rationale for NamedTemporaryFile?

[Python-Dev] Rationale for NamedTemporaryFile? [Python-Dev] Rationale for NamedTemporaryFile?Georg Brandl g.brandl at gmx.net
Sun Mar 18 09:13:15 CET 2007
Greg Ewing schrieb:
> I've just discovered the hard way that NamedTemporaryFile
> automatically deletes the file when you close it. That
> doesn't seem very useful to me, since surely the reason
> you're using NamedTemporaryFile instead of TemporaryFile
> is that you want to do something else with it afterwards?
> What's the rationale for this behaviour?

It now (2.6) has a keyword argument for not closing the file.

Georg

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