[New-bugs-announce] [issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

Eugene Viktorov report at bugs.python.org
Thu Feb 18 11:17:52 EST 2016


New submission from Eugene Viktorov:

When calling the tempfile.NamedTemporaryFile with mode='wr' or with any other wrong value for "mode", it raises the ValueError and silently leaves an unknown, just created file on the file system.

----------
components: Library (Lib)
files: temp_file.py
messages: 260466
nosy: Eugene Viktorov
priority: normal
severity: normal
status: open
title: the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file41957/temp_file.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26385>
_______________________________________


More information about the New-bugs-announce mailing list