Fix bug in serializing arguments of tasks that are more complex objects (#72)

* Give more informative error message when we do not know how to serialize a class.

* Check that passing arguments to remote functions and getting them does not change their values.

* fix serialization bug

* fix tests for common module

* Formatting.

* Bug fix in init_pickle_module signature.

* Use pickle with HIGHEST_PROTOCOL.
This commit is contained in:
Philipp Moritz
2016-11-30 23:21:53 -08:00
committed by Robert Nishihara
parent 1499834be1
commit 58e8bbcb34
6 changed files with 66 additions and 10 deletions
+7
View File
@@ -26,6 +26,13 @@ extern PyTypeObject PyObjectIDType;
extern PyTypeObject PyTaskType;
/* Python module for pickling. */
extern PyObject *pickle_module;
extern PyObject *pickle_dumps;
extern PyObject *pickle_loads;
void init_pickle_module(void);
int PyObjectToUniqueID(PyObject *object, object_id *objectid);
PyObject *PyObjectID_make(object_id object_id);