[Python-Dev] Remove tempfile.mktemp()
solipsis at pitrou.net
Tue Mar 19 10:29:17 EDT 2019
On Tue, 19 Mar 2019 15:10:40 +0100
Stéphane Wirtel <stephane at wirtel.be> wrote:
> totally agree with you but this function is deprecated (2002) since 2.3,
> with a simle comment about a security issue.
"Deprecated" doesn't mean anything here. It's just a mention in the
documentation. It doesn't produce actual warnings when used. And for
good reason: there are valid use cases.
> so, from today to 3.9+ there are approximatively 43 months -> 3,5 years.
> I think it's enough in term of time for the big projects to improve
> their code.
Please explain how the "improvement" would look like. What is the
intended replacement for the use case I have explained, and how does it
improve on the statu quo?
And if there is an easy replacement, then how about re-implementing
mktemp() using that replacement, instead of removing it?
More information about the Python-Dev