MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_DescrAlignConverter2

Function PyArray_DescrAlignConverter2

numpy/core/src/multiarray/descriptor.c:3143–3153  ·  view source on GitHub ↗

NUMPY_API * * Get type-descriptor from an object forcing alignment if possible * None goes to NULL. */

Source from the content-addressed store, hash-verified

3141 * None goes to NULL.
3142 */
3143NPY_NO_EXPORT int
3144PyArray_DescrAlignConverter2(PyObject *obj, PyArray_Descr **at)
3145{
3146 if (obj == Py_None) {
3147 *at = NULL;
3148 return NPY_SUCCEED;
3149 }
3150 else {
3151 return PyArray_DescrAlignConverter(obj, at);
3152 }
3153}
3154
3155
3156

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected