[Python-Dev] Mapping Darwin 8.2.0 to Mac OS X 10.4.2 in platform.py

Guido van Rossum guido at python.org
Thu Sep 22 05:28:30 CEST 2005


On 9/21/05, Guido van Rossum <guido at python.org> wrote:
> The platform module has a way to map system names such as returned by
> uname() to marketing names. It maps SunOS to Solaris, for example. But
> it doesn't map Darwin to Mac OS X. I think I know how to map Darwin
> version numbers to OS X version numbers: from
> http://www.opensource.apple.com/darwinsource/ it is clear that OS X
> 10.a.b corresponds to Darwin (a+4).b, except for OS X versions <=
> 10.1. I'd be happy to write the code and add it to system_alias() in
> platform.py. Is this a good idea?

I forgot. The current code recognizes 'Rhapsody' and maps it to "MacOS
X Server". But I don't see any evidence that Apple still uses the code
name Rhapsody. Does uname ever return 'Rhapsody'?

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list