| 897 | bool IsSequenceForData(PyObject* o) { return IsSequenceForDataHelper(o) == 1; } |
| 898 | |
| 899 | PyObject* FlattenForData(PyObject* nested) { |
| 900 | PyObject* list = PyList_New(0); |
| 901 | if (FlattenHelper(nested, list, IsSequenceForDataHelper, |
| 902 | GetValueIteratorForData)) { |
| 903 | return list; |
| 904 | } else { |
| 905 | Py_DECREF(list); |
| 906 | return nullptr; |
| 907 | } |
| 908 | } |
| 909 | |
| 910 | PyObject* IsNamedtuple(PyObject* o, bool strict) { |
| 911 | // Must be subclass of tuple |
nothing calls this directly
no test coverage detected