[New-bugs-announce] [issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

Daniel Stutzbach report at bugs.python.org
Sun Jun 28 22:24:26 CEST 2009


New submission from Daniel Stutzbach <daniel at stutzbachenterprises.com>:

Likely affects Python 2.7 and Python3.x as well, but I have not checked.

Under Windows:
>>> tempfile.NamedTemporaryFile('w', delete = False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'

Under Unix:
>>> tempfile.NamedTemporaryFile('w', delete=True)
<open file '<fdopen>', mode 'w' at 0x7ff199d0>

----------
messages: 89782
nosy: stutzbach
severity: normal
status: open
title: tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list