NUMPY_API * Get typenum from an object -- None goes to NULL */
| 1379 | * Get typenum from an object -- None goes to NULL |
| 1380 | */ |
| 1381 | NPY_NO_EXPORT int |
| 1382 | PyArray_DescrConverter2(PyObject *obj, PyArray_Descr **at) |
| 1383 | { |
| 1384 | if (obj == Py_None) { |
| 1385 | *at = NULL; |
| 1386 | return NPY_SUCCEED; |
| 1387 | } |
| 1388 | else { |
| 1389 | return PyArray_DescrConverter(obj, at); |
| 1390 | } |
| 1391 | } |
| 1392 | |
| 1393 | |
| 1394 | /** |
no test coverage detected