This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dloewenherz
Recipients dloewenherz
Date 2013-08-13.20:54:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376427240.14.0.584954211651.issue18730@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-08-13 20:54:00dloewenherzsetrecipients: + dloewenherz
2013-08-13 20:54:00dloewenherzsetmessageid: <1376427240.14.0.584954211651.issue18730@psf.upfronthosting.co.za>
2013-08-13 20:54:00dloewenherzlinkissue18730 messages
2013-08-13 20:54:00dloewenherzcreate