GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-87595: mmap.size() now returns the size on Unix for anonymous memory by ZackerySpytz · Pull Request #24781 · python/cpython Conversation
|
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @ZackerySpytz Could you resolve the conflicts?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Marking as needs backport to 3.11 because the parent issue is marked as
type-bug
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@ZackerySpytz, could you please update your PR to 3.15? It should take into account |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm not sure that @ZackerySpytz is still active. Maybe a new PR should be written? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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.
There was an error while loading. Please reload this page.
…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 <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…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 <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-138404 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-138405 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hello, @serhiy-storchaka. We must modify some of the changes you have made to this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Return the length of the file, which can be larger than the size of the | ||
| memory-mapped area. | ||
| For anonymous mapping, return its size. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| For anonymous mapping, return its size. | |
| For an anonymous mapping, return its size. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| For anonymous mapping, return its size. | ||
|
|
||
| .. versionchanged:: next | ||
| Supports anonymous mapping on Unix. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Supports anonymous mapping on Unix. | |
| Anonymous mappings are now supported on Unix. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| would be raised on Unix. | ||
| Raise :exc:`ValueError` instead of :exc:`OSError` with ``trackfd=False``. |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| would be raised on Unix. | |
| Raise :exc:`ValueError` instead of :exc:`OSError` with ``trackfd=False``. | |
| would be raised on Unix. :exc:`ValueError` is now raised instead of | |
| :exc:`OSError` when ``trackfd=False``. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ZackerySpytz this has been merged, please would you open a new PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm well aware that this PR has been merged, thank you very much. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@serhiy-storchaka I have created GH-138494. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…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 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.