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 <rep...@bugs.python.org> <http://bugs.python.org/issue18730> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com