On this page
  1. types.MemberDescriptorType
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

types.MemberDescriptorType

Prev: types.MappingProxyType | Up: types | Next: types.MethodDescriptorType
Rel: types.AsyncGeneratorType, types.BuiltinFunctionType, types.BuiltinMethodType, types.CapsuleType
Ref: docs.python.org — types.MemberDescriptorType
Tags: #public #python3 #stdlib #types


Import

import types
from types import MemberDescriptorType

Signature & Overview

types.MemberDescriptorType()

types.MemberDescriptorType class.

Usage

import types

class Slotted:
    __slots__ = ('x',)

assert isinstance(Slotted.x, types.MemberDescriptorType)

Gotchas

REPL Inspect

from types import MemberDescriptorType
help(MemberDescriptorType)

Linked from

Related notes