Runtime Types
types.MemberDescriptorType — runtime type
Identifies certain native data-member descriptors, including slots created by a Python class with __slots__ in CPython. Class lookup exposes the descriptor; instance lookup reads the slot. An uninitialized slot raises AttributeError. Other implementations may combine this type with GetSetDescriptorType.
Formal Syntax & Structure
python syntaxpython
types.MemberDescriptorTypeReturn Value
type
The class object types.MemberDescriptorType; this reference documents the class identity, not a universal constructor signature.
Working Example
Example Snippetpython
import typesclass Point: __slots__=("x",)value = Point.xprint(isinstance(value, types.MemberDescriptorType))