[stdlib-sig] gestalt, too?

M.-A. Lemburg mal at egenix.com
Tue May 13 12:30:31 CEST 2008


On 2008-05-13 12:09, Ronald Oussoren wrote:
> 
> On 13 May, 2008, at 11:58, M.-A. Lemburg wrote:
> 
>> On 2008-05-13 11:38, Ronald Oussoren wrote:
>>> On 13 May, 2008, at 11:23, M.-A. Lemburg wrote:
>>>> On 2008-05-12 04:10, Benjamin Peterson wrote:
>>>>> I don't see gestalt on PEP 3108, but it is a Mac module.
>>>>
>>>> I'm not sure what to make of that comment. What are you suggesting ?
>>>>
>>>> gestalt is used on Macs to access system information. platform.py
>>>> uses and probably a lot of Mac apps as well.
>>> PEP3108 proposes to drop all of Lib/plat-mac and Mac/Modules.
>>> I'm definitely in favor of dropping the Carbon bindings, but I'm -0 
>>> on dropping gestalt as it is a trivial module that's used by bits of 
>>> the standard library.
>>
>> Thanks, I didn't realize that *all* of Lib/plat-mac was targeted
>> for removal.
>>
>> I think that those modules which make sense on Mac OS X should
>> be moved to Lib/plat-darwin/, ie. gestalt.
> 
> Why? Technically speaking "darwin" is yet another platform: the 
> open-source unixy bits of OSX. I'd prefer to keep plat-mac, but one 
> that's much smaller than the current tree.

Well, if you fire up Python on Mac OS X 10.4, you get:

Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on *darwin*

OTOH, sys.path still has both plat-mac and plat-darwin on it.
Probably for historic reasons, I guess.

Either way, I'm -1 on removing the gestalt API, since it's needed
by platform.py and there doesn't appear to be an alternative for getting
at certain config information on Mac OS (but don't really care whether
it's implemented as C module or using ctypes ;-).

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 13 2008)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611


More information about the stdlib-sig mailing list