This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author goodmami
Recipients docs@python, goodmami
Date 2021-10-19.21:33:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634679196.13.0.332400133879.issue45528@roundup.psfhosted.org>
In-reply-to
Content
I have added a draft PR on GitHub that adds the lists of constants. As mentioned in the PR, there are a few things that I think could be added before merging:

1. Update descriptions in mmap.mmap, and maybe the intro, to link to relevant sections.

2. Verify the availability of some constants. I only have access to a Unix system, so I cannot easily check if, e.g., the PROT_* constants are unavailable on Windows, or just unused.

3. Provide descriptions for ALLOCATIONGRANULARITY and PAGESIZE. As I understand, allocations occur in chunks at the size of ALLOCATIONGRANULARITY on Windows and PAGESIZE on Unix, although (presumably for portability) mmap.ALLOCATIONGRANULARITY is set to be equal to mmap.PAGESIZE on Unix systems. So does mmap.PAGESIZE have any use on Windows?

I'm not an expert of the low-level implementation of mmap, so I appreciate any help with the above (particularly (2) and (3)).
History
Date User Action Args
2021-10-19 21:33:16goodmamisetrecipients: + goodmami, docs@python
2021-10-19 21:33:16goodmamisetmessageid: <1634679196.13.0.332400133879.issue45528@roundup.psfhosted.org>
2021-10-19 21:33:16goodmamilinkissue45528 messages
2021-10-19 21:33:16goodmamicreate