All Samples(4112) | Call(3857) | Derive(0) | Import(255)
loads(string) -- Load a pickle from the given string
All Samples(2712) | Call(2483) | Derive(0) | Import(229)
dumps(obj, protocol=0) -- Return a string containing an object in pickle format. See the Pickler docstring for the meaning of optional argument proto.
All Samples(1990) | Call(1868) | Derive(0) | Import(122)
dump(obj, file, protocol=0) -- Write an object in pickle format to the given file. See the Pickler docstring for the meaning of optional argument proto.
All Samples(1955) | Call(1794) | Derive(0) | Import(161)
load(file) -- Load a pickle from the given file
All Samples(34) | Call(0) | Derive(0) | Import(34)
int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string. If base is zero, the proper base is guessed based on the string content. If the argument is outside the integer range a long object will be returned instead.
All Samples(348) | Call(236) | Derive(0) | Import(112)
Pickler(file, protocol=0) -- Create a pickler. This takes a file-like object for writing a pickle data stream. The optional proto argument tells the pickler to use the given protocol; supported protocols are 0, 1, 2. The default protocol is 0, to be backwards compatible. (Protocol 0 is the only protocol that can be written to a file opened in text mode and read back successfully. When using a protocol higher than 0, make sure the file is opened in binary mode, both when pickling and unpickling.)(more...)