[issue10354] tempfile.template is broken

Giampaolo Rodola' report at bugs.python.org
Mon Nov 8 12:28:15 CET 2010


New submission from Giampaolo Rodola' <g.rodola at gmail.com>:

>>> import tempfile
>>> tempfile.template = 'XXX'
>>> tempfile.mkdtemp()
'/tmp/tmpPf5lML'
>>>

Functions that use template use it as an argument default, so changing it afterwards has no effect.

----------
components: Library (Lib)
messages: 120729
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: tempfile.template is broken
versions: Python 2.7, Python 3.1, Python 3.2

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


More information about the Python-bugs-list mailing list