PyDocs

Data Types

types

Define names for built-in types that aren't directly accessible as a builtin.
Symbols in types

a

AsyncGeneratorType
The type of asynchronous generator-iterator objects, created by asynchronous generator functions.

b

BuiltinFunctionType
The type of built-in functions like len() or sys.exit(), and methods of built-in classes.
BuiltinMethodType
The type of built-in functions like len() or sys.exit(), and methods of built-in classes.

c

CapsuleType
Capsule objects let you wrap a C "void *" pointer in a Python object.
CellType
Create a new cell object.
ClassMethodDescriptorType
The type of unbound class methods of some built-in data types such as dict.__dict__['fromkeys'].
CodeType
Create a code object.
coroutine
Convert regular generator function to a coroutine.
CoroutineType
The type of coroutine objects, created by async def functions.

d

DynamicClassAttribute
Route attribute access on a class to __getattr__.

e

EllipsisType
The type of the Ellipsis singleton.

f

FrameLocalsProxyType
Create a write-through view of the locals dictionary for a frame.
FrameType
The type of frame objects such as found in tb.tb_frame if tb is a traceback object.
FunctionType
The type of user-defined functions and functions created by lambda expressions.

g

GeneratorType
The type of generator-iterator objects, created by generator functions.
GenericAlias
Represent a PEP 585 generic type
get_original_bases
Return the class's "original" bases prior to modification by `__mro_entries__`.
GetSetDescriptorType
The type of objects defined in extension modules with PyGetSetDef, such as FrameType.f_locals or array.array.typecode.

l

LambdaType
The type of user-defined functions and functions created by lambda expressions.
LazyImportType
Represents a lazy import that will be resolved on first use.

m

MappingProxyType
Read-only proxy of a mapping.
MemberDescriptorType
The type of objects defined in extension modules with PyMemberDef, such as datetime.timedelta.days.
MethodDescriptorType
The type of methods of some built-in data types such as str.join().
MethodType
The type of methods of user-defined class instances.
MethodWrapperType
The type of bound methods of some built-in data types and base classes.
ModuleType
Create a module object.

n

new_class
Create a class object dynamically using the appropriate metaclass.
NoneType
The type of the None singleton.
NotImplementedType
The type of the NotImplemented singleton.

p

prepare_class
Call the __prepare__ method of the appropriate metaclass.

r

resolve_bases
Resolve MRO entries dynamically as specified by PEP 560.

s

SimpleNamespace
A simple attribute-based namespace.

t

TracebackType
Create a new traceback object.

u

UnionType
Represent a union type

w

WrapperDescriptorType
The type of methods of some built-in data types and base classes such as object.__init__() or object.__lt__().