Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-68048: Remove unneeded lseek call in mmap.mmap on Windows #7017

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented May 20, 2018

This was (apparently) necessary on Windows 9x systems, but these
operating systems are no longer supported.

This PR doesn't need a news entry.

https://bugs.python.org/issue23860

This was (apparently) necessary on Windows 9x systems, but these
operating systems are no longer supported.
@@ -37,6 +37,7 @@ def test_basic(self):
f.write(b'\0'* (PAGESIZE-3) )
f.flush()
m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
self.assertEqual(f.tell(), 2 * PAGESIZE)
Copy link
Member

Choose a reason for hiding this comment

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

What f.tell() returned before this change? What m.tell() returned and what it returns now?

@vstinner
Copy link
Member

Does this PR change the behavior on Windows?

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Aug 20, 2022
@erlend-aasland erlend-aasland changed the title bpo-23860: Remove unneeded lseek() call in mmap.mmap() (on Windows) gh-68048: Remove unneeded lseek call in mmap.mmap on Windows Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants