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 mjpieters
Recipients Yusuke Endoh, cheryl.sabella, lukasz.langa, mjpieters, obestwalter, thorleon, vstinner
Date 2019-11-09.13:09:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I found this issue after helping someone solve a Stack Overflow question at; they eventually figured out that their prefix was a path, not a path element.

I'd be all in favour of making tempfile._sanitize_params either reject a prefix or suffix with `os.sep` or `os.altsep` characters, or just take the last element of os.path.split().
Date User Action Args
2019-11-09 13:09:41mjpieterssetrecipients: + mjpieters, vstinner, lukasz.langa, cheryl.sabella, Yusuke Endoh, thorleon, obestwalter
2019-11-09 13:09:41mjpieterssetmessageid: <>
2019-11-09 13:09:41mjpieterslinkissue35278 messages
2019-11-09 13:09:40mjpieterscreate