Serialize numpy arrays with custom objects

This commit is contained in:
Philipp Moritz
2016-08-30 16:46:33 -07:00
parent 8c1f0f289e
commit 04c28001fc
5 changed files with 46 additions and 10 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ Status append(PyObject* elem, SequenceBuilder& builder,
} else if (PyArray_IsScalar(elem, Generic)) {
RETURN_NOT_OK(AppendScalar(elem, builder));
} else if (PyArray_Check(elem)) {
RETURN_NOT_OK(SerializeArray((PyArrayObject*) elem, builder));
RETURN_NOT_OK(SerializeArray((PyArrayObject*) elem, builder, subdicts));
} else if (elem == Py_None) {
RETURN_NOT_OK(builder.AppendNone());
} else {