]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)
authorZackery Spytz <zspytz@gmail.com>
Tue, 16 Jan 2024 07:51:46 +0000 (23:51 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 07:51:46 +0000 (08:51 +0100)
commit8fd287b18f20f0a310203f574adec196530627c7
treeffc030791a37e065236d82507a251ff5f0cec15e
parent42b90cf0d6ca8aa78be3009b4f35de2e5c3155b8
gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)

If *trackfd* is False, the file descriptor specified by *fileno*
will not be duplicated.

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/mmap.rst
Doc/whatsnew/3.13.rst
Lib/test/test_mmap.py
Misc/NEWS.d/next/Library/2021-04-15-10-41-51.bpo-34321.36m6_l.rst [new file with mode: 0644]
Modules/mmapmodule.c