| 43 | #endif |
| 44 | |
| 45 | static PyObject **py_sequence_get_items(PyObject *collection) { |
| 46 | if (PyList_CheckExact(collection)) { |
| 47 | return ((PyListObject *)collection)->ob_item; |
| 48 | } else if (PyTuple_CheckExact(collection)) { |
| 49 | return ((PyTupleObject *)collection)->ob_item; |
| 50 | } |
| 51 | return nullptr; |
| 52 | } |
| 53 | |
| 54 | namespace fory { |
| 55 |
no outgoing calls
no test coverage detected