我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用pickle.html()。
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)