|
Re: how to determine Mac OS X version: msg#00150python.apple
On May 28, 2004, at 18:03, Jack Jansen wrote: On 28-mei-04, at 8:32, brad.allen@xxxxxxxxxx wrote: Using Apple's Python 2.3 on 10.3.4, mac_ver() fails for me: >>> import platform >>> print platform.mac_ver() Traceback (most recent call last): File "<stdin>", line 1, in ? File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/platform.py", line 563, in mac_ver sysv,sysu,sysa = _mac_ver_lookup(('sysv','sysu','sysa')) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/platform.py", line 532, in _mac_ver_lookup append(gestalt(selector)) MacOS.Error: (-5551, 'undefined selector was passed to Gestalt') My machine doesn't like to do gestalt.gestalt('sysu') (and raises the wrong exception for platform.py's _mac_ver_lookup()?). -- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: how to determine Mac OS X version: 00150, Jack Jansen |
|---|---|
| Next by Date: | passing along cmd-key presses: 00150, Jack Nutting |
| Previous by Thread: | Re: how to determine Mac OS X versioni: 00150, Jack Jansen |
| Next by Thread: | Re: how to determine Mac OS X version: 00150, brad . allen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |