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 schmichael
Recipients docs@python, schmichael
Date 2011-09-10.20:24:18
SpamBayes Score 0.0030946468
Marked as misclassified No
Message-id <1315686259.57.0.0304440203891.issue12957@psf.upfronthosting.co.za>
In-reply-to
Content
Since mmap.resize uses MREMAP_MAYMOVE on Linux, it would be nice to warn users that pointers into their memory mapped regions will be invalid after resizes. Linux's manpage offers the following explanation:

"If the mapping is relocated, then absolute pointers into the old mapping location become invalid (offsets relative to the starting address of the mapping should be employed)."

Since the only way I know of to use pointers into mmaps from pure Python is to use ctypes.<type>.from_buffer(<mmap>), perhaps clarification would be better in the ctypes docs.
History
Date User Action Args
2011-09-10 20:24:19schmichaelsetrecipients: + schmichael, docs@python
2011-09-10 20:24:19schmichaelsetmessageid: <1315686259.57.0.0304440203891.issue12957@psf.upfronthosting.co.za>
2011-09-10 20:24:18schmichaellinkissue12957 messages
2011-09-10 20:24:18schmichaelcreate