Go to the source code of this file.
Define Documentation
#define error_converting |
( |
|
x | ) |
(((x) == -1) && PyErr_Occurred()) |
Function Documentation
NPY_NO_EXPORT PyArray_Descr* _array_find_python_scalar_type |
( |
PyObject * |
op | ) |
|
op is an object to be converted to an ndarray.
minitype is the minimum type-descriptor needed.
max is the maximum number of dimensions -- used for recursive call to avoid infinite recursion...
These need to come first because if op already carries a descr structure, then we want it to be the result if minitype is NULL.
VOID Arrays should not occur by "default" unless input was already a VOID
References PyArray_DESCR.
NPY_NO_EXPORT PyArray_Descr* _array_typedescr_fromstr |
( |
char * |
str | ) |
|
new reference
Need to make a new PyArray_Descr
References PyArray_BOOL.
If we own our own data, then no-problem
Get to the final base object If it is a writeable array, then return TRUE If we can find an array object or a writeable buffer object as the final base object or a string object (for pickling support memory savings).
- this last could be removed if a proper pickleable buffer was added to Python.
here so pickle support works seamlessly and unpickled array can be set and reset writeable -- could be abused --
Referenced by PyArray_UpdateFlags().