Skip to main content

Module protocol

Module protocol 

Source

Structs§

BufferDescriptor
BufferFlags
Capabilities a consumer asks a buffer exporter for, the flags argument of bf_getbuffer and of __buffer__ (PyBUF_*).
BufferMethods
PyBuffer
PyCallable
PyIter
Iterator Protocol.
PyIterIter
PyMapping
PyMappingMethods
PyMappingSlots
Mapping protocol
PyNumber
PyNumberMethods
PyNumberSlots
PySequence
PySequenceMethods
PySequenceSlots
VecBuffer

Enums§

PyIterReturn
PyNumberBinaryOp
Matches the NB_* constants ordering from opcode.h / BinaryOperator.
PyNumberTernaryOp

Traits§

BufferResizeGuard

Functions§

handle_bytes_to_int_err
numeric_literal_from_str
Normalize a str for the byte-oriented numeric parsers: Unicode decimal digits and whitespace fold to their ASCII equivalents, the way CPython runs every numeric constructor’s string argument through _PyUnicode_TransformDecimalAndSpaceToASCII first.

Type Aliases§

PyNumberBinaryFunc
PyNumberTernaryFunc
PyNumberUnaryFunc