A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-March/156769.html below:

[Python-Dev] Remove tempfile.mktemp()

[Python-Dev] Remove tempfile.mktemp() [Python-Dev] Remove tempfile.mktemp()Serhiy Storchaka storchaka at gmail.com
Wed Mar 20 04:04:56 EDT 2019
19.03.19 16:21, Paul Ganssle пише:
> I'm not sure the relationship with mkdir and mktemp here. I don't see
> any uses of tempfile.mktemp in pip or setuptools, though they do use
> os.mkdir (which is not deprecated).
> 
> Both pip and setuptools use pytest's tmpdir_factory.mktemp() in their
> test suites, but I believe that is not the same thing.

My fault!

Initially I searched mktemp, and have found usages in distutils, tests, 
and few other modules in the stdlib. When I wrote the last message I 
repeat the search on the wider set of Python sources, but for *mkdir* 
instead of *mktemp*! Thank you for catching this mistake Paul.

Actually, seems mktemp is used exclusively in tests in third-party projects.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4