Message137901
| Author |
sdaoden |
| Recipients |
ixokai, nadeem.vawda, ned.deily, neologix, pitrou, python-dev, ronaldoussoren, sdaoden, skrah, vstinner |
| Date |
2011年06月08日.12:21:14 |
| SpamBayes Score |
2.7300393e-07 |
| Marked as misclassified |
No |
| Message-id |
<20110608122104.GA6570@sherwood.local> |
| In-reply-to |
| Content |
Ok, this patch could be used.
*Unless* the code is not protected by the GIL.
- Gestalt usage is a bit more complicated according to
http://www.cocoadev.com/index.pl?DeterminingOSVersion
unless Python only supports OS X 10.4 and later.
(And platform.py correctly states that in _mac_ver_gestalt(),
but see below.)
- Due to usage of Gestalt, '-framework CoreServices' must be
linked against mmapmodule.c.
The Python configuration stuff is interesting for me, i managed
compilation by adding the line
mmap mmapmodule.c -framework CoreServices
to Modules/Setup, but i guess it's only OS X which is happy
about that.
platform.py: _mac_ver_xml() should be dropped entirely according
to one of Ned Deily's links ("never officially supported"), and
_mac_ver_gestalt() obviously never executed because i guess it
would fail due to "versioninfo". Unless i missed something.
By the way: where do you get the info from? "sys1", "sys2",
"sys3"? Cannot find it anywhere, only the long names, e.g.
gestaltSystemVersionXy.
Note that i've mailed Apple. I did not pay 99$ or even 249,ドル so
i don't know if there will be a response.
--
Ciao, Steffen
sdaoden(*)(gmail.com)
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments |
|