deimos.python.abstract_

Mirror abstract.h

Members

Aliases

PyMapping_Length
alias PyMapping_Length = PyMapping_Size

_

PyObject_Length
alias PyObject_Length = PyObject_Size

_

PySequence_In
alias PySequence_In = PySequence_Contains

_

PySequence_Length
alias PySequence_Length = PySequence_Size

_

Functions

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)

Availability: >= 2.5

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)

Availability: 2.*

PyMapping_Keys
PyObject* PyMapping_Keys(PyObject* o)

_

PyMapping_Keys
PyObject* PyMapping_Keys(PyObject* o)

Availability: 2.*

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)

Availability: 2.*

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)

Availability: 2.*

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)

Availability: 2.*

PyNumber_InPlaceFloorDivide
PyObject* PyNumber_InPlaceFloorDivide(PyObject* o1, PyObject* o2)

_

PyNumber_InPlaceLshift
PyObject* PyNumber_InPlaceLshift(PyObject* o1, PyObject* o2)

_

PyNumber_InPlaceMatrixMultiply
PyObject* PyNumber_InPlaceMatrixMultiply(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)

Availability: >= 2.5

PyNumber_Int
PyObject* PyNumber_Int(PyObject* o)

Availability: 2.*

PyNumber_Invert
PyObject* PyNumber_Invert(PyObject* o)

_

PyNumber_Long
PyObject* PyNumber_Long(PyObject* o)

_

PyNumber_Lshift
PyObject* PyNumber_Lshift(PyObject* o1, PyObject* o2)

_

PyNumber_MatrixMultiply
PyObject* PyNumber_MatrixMultiply(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_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)

Availability: >= 2.6

_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_RealIsInstance
int _PyObject_RealIsInstance(PyObject* inst, PyObject* cls)

Availability: >= 2.6

_PyObject_RealIsSubclass
int _PyObject_RealIsSubclass(PyObject* derived, PyObject* cls)

Availability: >= 2.6

_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)

_

Manifest constants

PY_ITERSEARCH_CONTAINS
enum PY_ITERSEARCH_CONTAINS;

_

PY_ITERSEARCH_COUNT
enum PY_ITERSEARCH_COUNT;

_

PY_ITERSEARCH_INDEX
enum PY_ITERSEARCH_INDEX;

_

See Also

<a href="http://docs.python.org/c-api/abstract.html"> Abstract Objects Layer</a>

Meta