[New-bugs-announce] [issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period
Dan Loewenherz
report at bugs.python.org
Tue Aug 13 22:54:00 CEST 2013
New submission from Dan Loewenherz:
Basically, when creating a NamedTemporaryFile, passing a value to the "suffix" parameter has no effect unless it's prepended with a period.
IMO, there are three options here...
1. Add a note in the documentation that this parameter only accepts period-prepended values (not ideal but better than the status quo).
2. Change the behavior to throw an exception when a non-period prepended value is provided (probably bad since it would break stuff).
3. Strip invalid values from this input and silently fail if the resulting string is of length 0 (might also break stuff).
----------
components: Library (Lib)
messages: 195097
nosy: dloewenherz
priority: normal
severity: normal
status: open
title: suffix parameter in NamedTemporaryFile silently fails when not prepending with a period
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18730>
_______________________________________
More information about the New-bugs-announce
mailing list