]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-136156: Allow using linkat() with TemporaryFile (#136281)
authorVictor Stinner <vstinner@python.org>
Tue, 8 Jul 2025 16:39:47 +0000 (18:39 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Jul 2025 16:39:47 +0000 (18:39 +0200)
commit6c81e8c57a1d291863c6beaa42392a7f1cf52854
tree6ccfcd09812029c395cafce4e56fd8d800cabf58
parent490eea02819ad303a5042529af7507b7b1fdabdc
gh-136156: Allow using linkat() with TemporaryFile (#136281)

tempfile.TemporaryFile() no longer uses os.O_EXCL with os.O_TMPFILE,
so it's possible to use linkat() on the file descriptor.
Lib/tempfile.py
Lib/test/test_tempfile.py
Misc/NEWS.d/next/Library/2025-07-04-12-53-02.gh-issue-136156.OYlXoz.rst [new file with mode: 0644]