Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
.. __: http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/
This module provides a Python interface to some of that functionality. The
interface is modeled on the ``getattr`` and ``setattr`` functions.
* ``getKey(object, key) -> value``
Get the attribute referenced by 'key'. The key is used
to build the name of an attribute, or attribute accessor method.
The following attributes and accesors are tried (in this order):
-
Accessor 'getKey'
Accesoor 'get_key'
Accessor or attribute 'key'
Accessor or attribute 'isKey'
Attribute '_key'
dumpStackOnFatalSignal.
This module is not designed to provide fine grained control over signal
handling. Nor is it intended to be terribly robust. It may give useful
information when your program gets unexpected signals, but it might just
as easily cause a crash when such a signal gets in.