[Python-ideas] Adding shm_open to mmap?
Nick Coghlan
ncoghlan at gmail.com
Wed Feb 15 01:07:23 CET 2012
On Wed, Feb 15, 2012 at 9:50 AM, Mike Meyer <mwm at mired.org> wrote:
> This seems like a slam-dunk to me, but...
>
> 1) Is there some reason not to just add these two functions?
Not that I can see. Make sure to add an "Availabilty: Unix" marker in
the relevant docs, though.
> 2) Are there any supported platforms with mmap and without
> shm_open/unlink?
The safest option is probably to add a configure check so we only
expose these APIs when the underlying platform offers them. There's a
*ton* of examples of such checks to copy from :)
> 3) Is this simple enough that a PEP isn't needed, just a patch in an
> issue?
Just a tracker issue will be fine - we expose additional posix APIs
all the time without a PEP.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list