- PyBuffer_FillContiguousStrides
void PyBuffer_FillContiguousStrides(int ndims, Py_ssize_t* shape, Py_ssize_t* strides, int itemsize, char fort)
Fill the strides array with byte-strides of a contiguous
(Fortran-style if fort is 'F' or C-style otherwise)
array of the given shape with the given number of bytes
per element.
- PyBuffer_FillInfo
int PyBuffer_FillInfo(Py_buffer* view, PyObject* o, void* buf, Py_ssize_t len, int readonly, int flags)
Fills in a buffer-info structure correctly for an exporter
that can only share a contiguous chunk of memory of
"unsigned bytes" of the given length. Returns 0 on success
and -1 (with raising an error) on error.
- PyBuffer_FromContiguous
int PyBuffer_FromContiguous(Py_buffer* view, void* buf, Py_ssize_t len, char fort)
Copy len bytes of data from the contiguous chunk of memory
pointed to by buf into the buffer exported by obj. Return
0 on success and return -1 and raise a PyBuffer_Error on
error (i.e. the object does not have a buffer interface or
it is not working).
- PyBuffer_GetPointer
void* PyBuffer_GetPointer(Py_buffer* view, Py_ssize_t* indices)
Get the memory area pointed to by the indices for the buffer given.
Note that view->ndim is the assumed size of indices
- PyBuffer_IsContiguous
int PyBuffer_IsContiguous(Py_buffer* view, char fort)
- PyBuffer_Release
void PyBuffer_Release(Py_buffer* view)
Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
- PyBuffer_SizeFromFormat
int PyBuffer_SizeFromFormat(const(char)* )
Return the implied itemsize of the data-format area from a
struct-style description
- PyBuffer_ToContiguous
int PyBuffer_ToContiguous(void* buf, Py_buffer* view, Py_ssize_t len, char fort)
- PyIndex_Check
int PyIndex_Check(PyObject* obj)
- PyIter_Check
int PyIter_Check(PyObject* obj)
- PyIter_Next
PyObject* PyIter_Next(PyObject* )
- PyMapping_Check
int PyMapping_Check(PyObject* o)
- PyMapping_DelItem
int PyMapping_DelItem(PyObject* o, PyObject* k)
- PyMapping_DelItemString
int PyMapping_DelItemString(PyObject* o, char* k)
- PyMapping_GetItemString
PyObject* PyMapping_GetItemString(PyObject* o, char* key)
- PyMapping_HasKey
int PyMapping_HasKey(PyObject* o, PyObject* key)
- PyMapping_HasKeyString
int PyMapping_HasKeyString(PyObject* o, char* key)
- PyMapping_Items
PyObject* PyMapping_Items(PyObject* o)
- PyMapping_Items
PyObject* PyMapping_Items(PyObject* o)
- PyMapping_Keys
PyObject* PyMapping_Keys(PyObject* o)
- PyMapping_Keys
PyObject* PyMapping_Keys(PyObject* o)
- PyMapping_SetItemString
int PyMapping_SetItemString(PyObject* o, char* key, PyObject* value)
- PyMapping_Size
Py_ssize_t PyMapping_Size(PyObject* o)
- PyMapping_Values
PyObject* PyMapping_Values(PyObject* o)
- PyMapping_Values
PyObject* PyMapping_Values(PyObject* o)
- PyNumber_Absolute
PyObject* PyNumber_Absolute(PyObject* o)
- PyNumber_Add
PyObject* PyNumber_Add(PyObject* o1, PyObject* o2)
- PyNumber_And
PyObject* PyNumber_And(PyObject* o1, PyObject* o2)
- PyNumber_AsSsize_t
Py_ssize_t PyNumber_AsSsize_t(PyObject* o, PyObject* exc)
Returns the Integral instance converted to an int. The
instance is expected to be int or long or have an __int__
method. Steals integral's reference. error_format will be
used to create the TypeError if integral isn't actually an
Integral instance. error_format should be a format string
that can accept a char* naming integral's type.
- PyNumber_Check
int PyNumber_Check(PyObject* o)
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
- PyNumber_Divide
PyObject* PyNumber_Divide(PyObject* o1, PyObject* o2)
- PyNumber_Divmod
PyObject* PyNumber_Divmod(PyObject* o1, PyObject* o2)
- PyNumber_Float
PyObject* PyNumber_Float(PyObject* o)
- PyNumber_FloorDivide
PyObject* PyNumber_FloorDivide(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceAdd
PyObject* PyNumber_InPlaceAdd(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceAnd
PyObject* PyNumber_InPlaceAnd(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceDivide
PyObject* PyNumber_InPlaceDivide(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceFloorDivide
PyObject* PyNumber_InPlaceFloorDivide(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceLshift
PyObject* PyNumber_InPlaceLshift(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceMultiply
PyObject* PyNumber_InPlaceMultiply(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceOr
PyObject* PyNumber_InPlaceOr(PyObject* o1, PyObject* o2)
- PyNumber_InPlacePower
PyObject* PyNumber_InPlacePower(PyObject* o1, PyObject* o2, PyObject* o3)
- PyNumber_InPlaceRemainder
PyObject* PyNumber_InPlaceRemainder(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceRshift
PyObject* PyNumber_InPlaceRshift(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceSubtract
PyObject* PyNumber_InPlaceSubtract(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceTrueDivide
PyObject* PyNumber_InPlaceTrueDivide(PyObject* o1, PyObject* o2)
- PyNumber_InPlaceXor
PyObject* PyNumber_InPlaceXor(PyObject* o1, PyObject* o2)
- PyNumber_Index
PyObject* PyNumber_Index(PyObject* o)
- PyNumber_Int
PyObject* PyNumber_Int(PyObject* o)
- PyNumber_Invert
PyObject* PyNumber_Invert(PyObject* o)
- PyNumber_Long
PyObject* PyNumber_Long(PyObject* o)
- PyNumber_Lshift
PyObject* PyNumber_Lshift(PyObject* o1, PyObject* o2)
- PyNumber_Multiply
PyObject* PyNumber_Multiply(PyObject* o1, PyObject* o2)
- PyNumber_Negative
PyObject* PyNumber_Negative(PyObject* o)
- PyNumber_Or
PyObject* PyNumber_Or(PyObject* o1, PyObject* o2)
- PyNumber_Positive
PyObject* PyNumber_Positive(PyObject* o)
- PyNumber_Power
PyObject* PyNumber_Power(PyObject* o1, PyObject* o2, PyObject* o3)
- PyNumber_Remainder
PyObject* PyNumber_Remainder(PyObject* o1, PyObject* o2)
- PyNumber_Rshift
PyObject* PyNumber_Rshift(PyObject* o1, PyObject* o2)
- PyNumber_Subtract
PyObject* PyNumber_Subtract(PyObject* o1, PyObject* o2)
- PyNumber_ToBase
PyObject* PyNumber_ToBase(PyObject* n, int base)
Returns the integer n converted to a string with a base, with a base
marker of 0b, 0o or 0x prefixed if applicable.
If n is not an int object, it is converted with PyNumber_Index first.
- PyNumber_TrueDivide
PyObject* PyNumber_TrueDivide(PyObject* o1, PyObject* o2)
- PyNumber_Xor
PyObject* PyNumber_Xor(PyObject* o1, PyObject* o2)
- PyObject_AsCharBuffer
int PyObject_AsCharBuffer(PyObject* obj, const(char)** buffer, Py_ssize_t* buffer_len)
- PyObject_AsReadBuffer
int PyObject_AsReadBuffer(PyObject* obj, void** buffer, Py_ssize_t* buffer_len)
- PyObject_AsWriteBuffer
int PyObject_AsWriteBuffer(PyObject* obj, void** buffer, Py_ssize_t* buffer_len)
- PyObject_Call
PyObject* PyObject_Call(PyObject* callable_object, PyObject* args, PyObject* kw)
- PyObject_CallFunction
PyObject* PyObject_CallFunction(PyObject* callable_object, char* format, ...)
- PyObject_CallFunctionObjArgs
PyObject* PyObject_CallFunctionObjArgs(PyObject* callable, ...)
- PyObject_CallMethod
PyObject* PyObject_CallMethod(PyObject* o, const(char)* m, const(char)* format, ...)
- PyObject_CallMethodObjArgs
PyObject* PyObject_CallMethodObjArgs(PyObject* o, PyObject* m, ...)
- PyObject_CallObject
PyObject* PyObject_CallObject(PyObject* callable_object, PyObject* args)
- PyObject_CheckBuffer
int PyObject_CheckBuffer(PyObject* obj)
Return 1 if the getbuffer function is available, otherwise
return 0
- PyObject_CheckReadBuffer
int PyObject_CheckReadBuffer(PyObject* obj)
- PyObject_Cmp
int PyObject_Cmp(PyObject* o1, PyObject* o2, int* result)
- PyObject_CopyData
int PyObject_CopyData(PyObject* dest, PyObject* src)
Copy the data from the src buffer to the buffer of dest
- PyObject_DelAttr
int PyObject_DelAttr(PyObject* o, PyObject* a)
- PyObject_DelAttrString
int PyObject_DelAttrString(PyObject* o, const(char)* a)
- PyObject_DelItem
int PyObject_DelItem(PyObject* o, PyObject* key)
- PyObject_DelItemString
int PyObject_DelItemString(PyObject* o, char* key)
- PyObject_Format
PyObject* PyObject_Format(PyObject* obj, PyObject* format_spec)
Takes an arbitrary object and returns the result of
calling obj.__format__(format_spec).
- PyObject_GetBuffer
int PyObject_GetBuffer(PyObject* obj, Py_buffer* view, int flags)
This is a C-API version of the getbuffer function call. It checks
to make sure object has the required function pointer and issues the
call. Returns -1 and raises an error on failure and returns 0 on
success
- PyObject_GetItem
PyObject* PyObject_GetItem(PyObject* o, PyObject* key)
- PyObject_GetIter
PyObject* PyObject_GetIter(PyObject* )
- PyObject_IsInstance
int PyObject_IsInstance(PyObject* object, PyObject* typeorclass)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- PyObject_IsSubclass
int PyObject_IsSubclass(PyObject* object, PyObject* typeorclass)
- PyObject_SetItem
int PyObject_SetItem(PyObject* o, PyObject* key, PyObject* v)
- PyObject_Size
Py_ssize_t PyObject_Size(PyObject* o)
- PyObject_Type
PyObject* PyObject_Type(PyObject* o)
- PySequence_Check
int PySequence_Check(PyObject* o)
- PySequence_Concat
PyObject* PySequence_Concat(PyObject* o1, PyObject* o2)
- PySequence_Contains
int PySequence_Contains(PyObject* seq, PyObject* ob)
- PySequence_Count
Py_ssize_t PySequence_Count(PyObject* o, PyObject* value)
- PySequence_DelItem
int PySequence_DelItem(PyObject* o, Py_ssize_t i)
- PySequence_DelSlice
int PySequence_DelSlice(PyObject* o, Py_ssize_t i1, Py_ssize_t i2)
- PySequence_Fast
PyObject* PySequence_Fast(PyObject* o, const(char)* m)
- PySequence_Fast_GET_ITEM
PyObject* PySequence_Fast_GET_ITEM(PyObject* o, Py_ssize_t i)
- PySequence_Fast_GET_SIZE
Py_ssize_t PySequence_Fast_GET_SIZE(PyObject* o)
- PySequence_Fast_ITEMS
PyObject** PySequence_Fast_ITEMS(PyObject* sf)
- PySequence_GetItem
PyObject* PySequence_GetItem(PyObject* o, Py_ssize_t i)
- PySequence_GetSlice
PyObject* PySequence_GetSlice(PyObject* o, Py_ssize_t i1, Py_ssize_t i2)
- PySequence_ITEM
PyObject* PySequence_ITEM(PyObject* o, Py_ssize_t i)
- PySequence_InPlaceConcat
PyObject* PySequence_InPlaceConcat(PyObject* o1, PyObject* o2)
- PySequence_InPlaceRepeat
PyObject* PySequence_InPlaceRepeat(PyObject* o, Py_ssize_t count)
- PySequence_Index
Py_ssize_t PySequence_Index(PyObject* o, PyObject* value)
- PySequence_List
PyObject* PySequence_List(PyObject* o)
- PySequence_Repeat
PyObject* PySequence_Repeat(PyObject* o, Py_ssize_t count)
- PySequence_SetItem
int PySequence_SetItem(PyObject* o, Py_ssize_t i, PyObject* v)
- PySequence_SetSlice
int PySequence_SetSlice(PyObject* o, Py_ssize_t i1, Py_ssize_t i2, PyObject* v)
- PySequence_Size
Py_ssize_t PySequence_Size(PyObject* o)
- PySequence_Tuple
PyObject* PySequence_Tuple(PyObject* o)
- _PyNumber_ConvertIntegralToInt
PyObject* _PyNumber_ConvertIntegralToInt(PyObject* integral, const(char)* error_format)
- _PyObject_LengthHint
Py_ssize_t _PyObject_LengthHint(PyObject* , Py_ssize_t )
The length hint function returns a non-negative value from o.__len__()
or o.__length_hint__(). If those methods aren't found or return a negative
value, then the defaultvalue is returned. If one of the calls fails,
this function returns -1.
- _PyObject_LengthHint
Py_ssize_t _PyObject_LengthHint(PyObject* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- _PyObject_RealIsInstance
int _PyObject_RealIsInstance(PyObject* inst, PyObject* cls)
- _PyObject_RealIsSubclass
int _PyObject_RealIsSubclass(PyObject* derived, PyObject* cls)
- _PySequence_BytesToCharpArray
const(char*)* _PySequence_BytesToCharpArray(PyObject* self)
- _PySequence_IterSearch
Py_ssize_t _PySequence_IterSearch(PyObject* seq, PyObject* obj, int operation)
- _Py_FreeCharPArray
void _Py_FreeCharPArray(const(char*)* array)
Mirror abstract.h