gh-87595: mmap.size() now returns the size on Unix for anonymous memory#24781
Conversation
Previously, the size would be returned on Windows and an OSError would be raised on Unix.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
furkanonder
left a comment
There was a problem hiding this comment.
LGTM. @ZackerySpytz Could you resolve the conflicts?
Sorry, something went wrong.
|
Marking as needs backport to 3.11 because the parent issue is marked as type-bug An unexpected behavior, bug, or error . |
Sorry, something went wrong.
|
@ZackerySpytz, could you please update your PR to 3.15? It should take into account |
Sorry, something went wrong.
|
I'm not sure that @ZackerySpytz is still active. Maybe a new PR should be written? |
Sorry, something went wrong.
32032ee
into
python:main
Sep 2, 2025
|
Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
…thonGH-24781) Previously, the size would be returned on Windows and an OSError would be raised on Unix. Also, raise ValueError instead of OSError for trackfd=False. (cherry picked from commit 32032ee) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…thonGH-24781) Previously, the size would be returned on Windows and an OSError would be raised on Unix. Also, raise ValueError instead of OSError for trackfd=False. (cherry picked from commit 32032ee) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
ZackerySpytz
left a comment
There was a problem hiding this comment.
Hello, @serhiy-storchaka. We must modify some of the changes you have made to this PR.
Sorry, something went wrong.
|
@ZackerySpytz this has been merged, please would you open a new PR? |
Sorry, something went wrong.
|
I'm well aware that this PR has been merged, thank you very much. |
Sorry, something went wrong.
…thonGH-24781) Previously, the size would be returned on Windows and an OSError would be raised on Unix. Also, raise ValueError instead of OSError for trackfd=False. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Previously, the size would be returned on Windows and an OSError would
be raised on Unix.
https://bugs.python.org/issue43429