NUMPY_API * Convert any Python object, *obj*, to an NPY_CASTING enum. */
| 939 | * Convert any Python object, *obj*, to an NPY_CASTING enum. |
| 940 | */ |
| 941 | NPY_NO_EXPORT int |
| 942 | PyArray_CastingConverter(PyObject *obj, NPY_CASTING *casting) |
| 943 | { |
| 944 | return string_converter_helper( |
| 945 | obj, (void *)casting, casting_parser, "casting", |
| 946 | "must be one of 'no', 'equiv', 'safe', " |
| 947 | "'same_kind', or 'unsafe'"); |
| 948 | return 0; |
| 949 | } |
| 950 | |
| 951 | /***************************** |
| 952 | * Other conversion functions |
no test coverage detected