Lines Matching refs:pickle
1 import pickle
10 return pickletools.optimize(pickle.dumps(arg, proto))
13 return pickle.loads(buf, **kwds)
24 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
25 pickled = pickle.dumps(data, proto)
26 unpickled = pickle.loads(pickled)
31 unpickled2 = pickle.loads(pickled2)
34 self.assertNotIn(pickle.LONG_BINGET, pickled2)
35 self.assertNotIn(pickle.LONG_BINPUT, pickled2)
52 self.assertIn(pickle.BINPUT, pickled)
53 unpickled = pickle.loads(pickled)
58 unpickled2 = pickle.loads(pickled2)
61 self.assertNotIn(pickle.BINPUT, pickled2)