]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior...
authorADITYA RAI <adi.hack1234@gmail.com>
Tue, 6 Jan 2026 17:08:25 +0000 (22:38 +0530)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 17:08:25 +0000 (17:08 +0000)
commite79c9b703117d8b0e7c4d86b704e2e7f120db883
tree9eda100376d028f347bb0c08599e991c1c66acc2
parent8735daf3e82d50defd791e9be7b9ae6843bc4ed1
gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (#142338)

The documentation incorrectly stated that the file descriptor is not
inherited by child processes. In reality, the close-on-exec flag (when
available) only prevents inheritance across exec() calls, not fork().

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/library/os.rst
Doc/library/tempfile.rst