[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

Ronald Oussoren report at bugs.python.org
Sun Jul 7 11:11:17 CEST 2013


New submission from Ronald Oussoren:

In OSX 10.8 the Gestalt() funtion in CoreServices is deprecated. This function is used in the _gestalt extension and exported to Python code.

The only in-tree user of this (private) extension is the platform module, it uses gestalt as one of the alternatives to get the OSX release; and a fallback at that.

A stackoverflow user has done some sleuthing and discovered that the gestalt function uses the same XML file to determine the OSX release as is used by the primary alternative used by the platform module (see <http://stackoverflow.com/questions/11072804/mac-os-x-10-8-replacement-for-gestalt-for-testing-os-version-at-runtime>). The gestalt alternative will therefore likely be useful at all (it is only used when the file it reads is not available in the first place).

The easiest solution to avoid this deprecated API is therefore to drop the  _gestalt extension and remove its use in platform.mac_ver()

----------
assignee: ronaldoussoren
components: Macintosh
keywords: easy
messages: 192526
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: test needed
status: open
title: Gestalt() is deprecated on OSX 10.8, remove support?
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18393>
_______________________________________


More information about the Python-bugs-list mailing list