NUMPY_API * Convert object to sort kind */
| 579 | * Convert object to sort kind |
| 580 | */ |
| 581 | NPY_NO_EXPORT int |
| 582 | PyArray_SortkindConverter(PyObject *obj, NPY_SORTKIND *sortkind) |
| 583 | { |
| 584 | /* Leave the desired default from the caller for Py_None */ |
| 585 | if (obj == Py_None) { |
| 586 | return NPY_SUCCEED; |
| 587 | } |
| 588 | return string_converter_helper( |
| 589 | obj, (void *)sortkind, sortkind_parser, "sort kind", |
| 590 | "must be one of 'quick', 'heap', or 'stable'"); |
| 591 | } |
| 592 | |
| 593 | static int selectkind_parser(char const *str, Py_ssize_t length, void *data) |
| 594 | { |
nothing calls this directly
no test coverage detected