[Pythonmac-SIG] Distinguish between 8.6 and 9.x

Jack Jansen Jack.Jansen at cwi.nl
Thu Mar 25 15:33:44 EST 2004


On 25 Mar 2004, at 17:47, Pascal Oberndoerfer wrote:

> Hello,
>
> what is the best/safest way to determine if my MacPython-OS9 is 
> running on a
> 8.6 or 9.x machine?

Use the gestalt module. There's various selectors you can use to get 
exact details, but 'sysv' is probably good enough for what you want. 
For me it returns 0x1033, I assume for you it will return 0x860 or 
0x922 or something similar.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Pythonmac-SIG mailing list