decorators.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:odin 作者: imito 项目源码 文件源码
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 ==================== #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号