◐ Shell
reader mode source ↗
Skip to content

gh-78502: Add a trackfd parameter to mmap.mmap() on Windows#138238

Merged
serhiy-storchaka merged 7 commits into
python:mainfrom
serhiy-storchaka:mmap-trackfd-win
Sep 3, 2025
Merged

gh-78502: Add a trackfd parameter to mmap.mmap() on Windows#138238
serhiy-storchaka merged 7 commits into
python:mainfrom
serhiy-storchaka:mmap-trackfd-win

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 29, 2025

Copy link
Copy Markdown
Member

If trackfd is False, the file handle corresponding to fileno will not be duplicated.


📚 Documentation preview 📚: https://cpython-previews--138238.org.readthedocs.build/

If trackfd is False, the file handle corresponding to fileno
will not be duplicated.
If trackfd is False, the file handle corresponding to fileno
will not be duplicated.
@serhiy-storchaka serhiy-storchaka added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Aug 29, 2025
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 558beef 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F138238%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Aug 29, 2025
@serhiy-storchaka serhiy-storchaka changed the title gh-78502: AAdd a trackfd parameter to mmap.mmap() on Windows Aug 29, 2025

@encukou encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

I'm not much of a Windows expert, but, the code looks good to me! Thank you!

@zooba zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Other than that condition, looks fine to me.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

LGTM

serhiy-storchaka and others added 2 commits September 2, 2025 18:43
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Before merging this PR, it would be convenient to merge #24781.

Hide details View details @serhiy-storchaka serhiy-storchaka merged commit 7274d07 into python:main Sep 3, 2025
45 checks passed
@serhiy-storchaka serhiy-storchaka deleted the mmap-trackfd-win branch September 3, 2025 08:31
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
…thonGH-138238)

If trackfd is False, the file handle corresponding to fileno
will not be duplicated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants