[New-bugs-announce] [issue21579] Python 3.4: tempfile.close attribute does not work
report at bugs.python.org
Mon May 26 07:47:59 CEST 2014
New submission from Марк Коренберг:
want_to_replace = 'zxc.dat'
with tempfile.NamedTemporaryFile(dir=tmpdir) as fff:
# do somewhat with fff here... and then:
fff.delete = False
In python 3.3 and lower that works FINE. In Python 3.4 the fff._closer attribute was introduced, so fff.close=False stopped to work. I think this is major loss of functionality. The "close" attribute was not marked as private, so may be used in past.
components: Library (Lib)
title: Python 3.4: tempfile.close attribute does not work
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce