[Pythonmac-SIG] mmap module

Sean Hummel hummelsean@mac.com
Mon, 13 Aug 2001 01:51:03 -0700


Okay so now it appears that I need this module too, so I am going to write
it.

However there is an interesting case, for which, I don't know what the
reasonable solution is.

In particular, FileMapping is only supported on MacOS 9.1 or greater, which
means when the module is used on a lesser version of the operating system,
it should:

1. be hard linked against the appropriate system libraries, and as a result
not load when particular functions are not available.

2. be weak linked, and not initialize the module.

3. be weak linked, initialize the module, but don't give the module any
methods.

4. be weak linked, not initialize the module, and raise an error. (Thus
importing it would raise an error on non-supported systems.)

These are the solutions I can see with this problem, but I wasn't sure which
one (if any of these,) is commonly used in such a case.



> From: Chris Barker <chrishbarker@home.net>
> Date: Tue, 07 Aug 2001 16:14:33 -0700
> Cc: pythonmac-sig@python.org
> Subject: Re: [Pythonmac-SIG] mmap module
> 
> Jack Jansen wrote:
>> Recently, Chris Barker <chrishbarker@home.net> said:
>>> I just discovered the mmap module (I think it's been in the standard
>>> library since 2.0). It does not seem to exist in MacPython. Judging by
>>> the facat that the Windows and Unix constructors are different, I
>>> imagine a port to the Mac would take some work. I do have a use for it,
>>> is there any chance there will be a Mac version some day?
>> 
>> It would be nice, but don't count on me doing it. There's a mapped
>> memory API in at least OS9, maybe earlier, that has all the niceties
>> you need like an interface to file refnos and such.
> 
> Fair enough. If I find I really need it, maybe I'll look into getting it
> to work, but I'll probably just find a way around it.
> 
> -Chris
> 
> 
> 
> -- 
> Christopher Barker,
> Ph.D.            
> ChrisHBarker@home.net                 ---           ---           ---
> http://members.home.net/barkerlohmann ---@@       -----@@       -----@@
> ------@@@     ------@@@     ------@@@
> Oil Spill Modeling                ------   @    ------   @   ------   @
> Water Resources Engineering       -------      ---------     --------
> Coastal and Fluvial Hydrodynamics --------------------------------------
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig