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 serhiy.storchaka
Recipients bignose, eryksun, ethan.furman, georg.brandl, gumnos, r.david.murray, serhiy.storchaka
Date 2021-03-13.15:56:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615650977.06.0.472239842409.issue26362@roundup.psfhosted.org>
In-reply-to
Content
This function would increase security risks. Even if it will be documented as "This function is only purposed to generate file paths which looks similar to paths of temporary files generated by other functions in this module, but should not be used for any access to filesystem", it would be used to generate file paths and opening files with these paths by users which do not read documentation and do not know the right way (because they do not read documentation).

It has flaws which require to deprecate it from start.

If you want to shoot in your foot, just use private generator function tempfile._get_candidate_names(). But it should not be encouraged.

I am for closing this issue by rejecting the proposition.
History
Date User Action Args
2021-03-13 15:56:17serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, gumnos, r.david.murray, ethan.furman, bignose, eryksun
2021-03-13 15:56:17serhiy.storchakasetmessageid: <1615650977.06.0.472239842409.issue26362@roundup.psfhosted.org>
2021-03-13 15:56:17serhiy.storchakalinkissue26362 messages
2021-03-13 15:56:16serhiy.storchakacreate