MainClass.py 文件源码

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

项目:TutLab 作者: KingsMentor 项目源码 文件源码
def dump(self, obj, file, protocol=0):
        """
        Dumps (pickles) a PyGithub object to a file-like object.
        Some effort is made to not pickle sensitive informations like the Github credentials used in the :class:`Github` instance.
        But NO EFFORT is made to remove sensitive information from the object's attributes.

        :param obj: the object to pickle
        :param file: the file-like object to pickle to
        :param protocol: the `pickling protocol <http://docs.python.org/2.7/library/pickle.html#data-stream-format>`_
        """
        pickle.dump((obj.__class__, obj.raw_data, obj.raw_headers), file, protocol)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号