Runtime Types
types.GetSetDescriptorType — runtime type
Identifies attribute descriptors implemented with native getter/setter hooks on extension types. Access via the owning class exposes the descriptor; instance access resolves the attribute. Not all such attributes are writable. This is useful for introspection, not a general predicate for Python properties.
Formal Syntax & Structure
python syntaxpython
types.GetSetDescriptorTypeReturn Value
type
The class object types.GetSetDescriptorType; this reference documents the class identity, not a universal constructor signature.
Working Example
Example Snippetpython
import typesvalue = types.FrameType.f_localsprint(isinstance(value, types.GetSetDescriptorType))