def __setstate__(self, states):
(self._sandbox,
self._source,
self._argsmap) = states
# ====== deserialize the function ====== #
if isinstance(self._sandbox, string_types):
self._function = cPickle.loads(self._sandbox)
else:
self._function, sandbox = _deserialize_function_sandbox(self._sandbox)
if self._function is None:
raise RuntimeError('[funtionable] Cannot find function in sandbox.')
# ==================== properties ==================== #
评论列表
文章目录