(self, obj)
Write a pickled representation of obj to the open file.
Write a pickled representation of obj to the open file.
Write a pickled representation of obj to the open file .
def dump(self, obj):
        """Write a pickled representation of obj to the open file."""
        # Check whether Pickler was initialized correctly. This is
        # only needed to mimic the behavior of _pickle.Pickler.dump().
        if not hasattr(self, "_file_write"):
            raise PicklingError("Pickler.__init__() was not called by "
                                "%s.__init__()" % (self.__class__.__name__,))
        if self.proto >= 2:
            self.write(PROTO + pack("<B", self.proto))
        if self.proto >= 4:
            self.framer.start_framing()
        self.save(obj)
        self.write(STOP)
        self.framer.end_framing()
def dump ( self , obj ) : # Check whether Pickler was initialized correctly. This is # only needed to mimic the behavior of _pickle.Pickler.dump(). if not hasattr ( self , "_file_write" ) : raise PicklingError ( "Pickler.__init__() was not called by " "%s.__init__()" % ( self . __class__ . __name__ , ) ) if self . proto >= 2 : self . write ( PROTO + pack ( "<B" , self . proto ) ) if self . proto >= 4 : self . framer . start_framing ( ) self . save ( obj ) self . write ( STOP ) self . framer . end_framing ( )