Home
last modified time | relevance | path

Searched refs:pickle (Results 1 – 25 of 48) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pickle.py1 import pickle
15 return pickle.dumps(arg, proto)
19 return pickle.loads(buf)
21 module = pickle
30 p = pickle.Pickler(f, proto)
39 u = pickle.Unpickler(f)
45 class PersPickler(pickle.Pickler):
57 class PersUnpickler(pickle.Unpickler):
66 pickler_class = pickle.Pickler
67 unpickler_class = pickle.Unpickler
[all …]
Dpickletester.py2 import pickle
14 assert pickle.HIGHEST_PROTOCOL == cPickle.HIGHEST_PROTOCOL == 2
15 protocols = range(pickle.HIGHEST_PROTOCOL + 1)
55 def opcode_in_pickle(code, pickle): argument
56 for op, dummy, dummy in pickletools.genops(pickle):
62 def count_opcode(code, pickle): argument
64 for op, dummy, dummy in pickletools.genops(pickle):
572 pickle = self.dumps(n, proto)
573 got = self.loads(pickle)
590 pickle = self.dumps(value, proto)
[all …]
Dtest_pickletools.py1 import pickle
10 return pickletools.optimize(pickle.dumps(arg, proto))
13 return pickle.loads(buf)
15 module = pickle
Dtest_xpickle.py11 import pickle
45 return pickle.loads(buf)
53 return pickle.dumps(arg, proto)
143 pickle = self.dumps(value, 0)
144 got = self.loads(pickle)
149 pickle = self.dumps(value, proto)
150 got = self.loads(pickle)
195 module = pickle
212 module = pickle
229 module = pickle
Dtest_bool.py308 import pickle
309 self.assertIs(pickle.loads(pickle.dumps(True)), True)
310 self.assertIs(pickle.loads(pickle.dumps(False)), False)
311 self.assertIs(pickle.loads(pickle.dumps(True, True)), True)
312 self.assertIs(pickle.loads(pickle.dumps(False, True)), False)
322 import pickle, cPickle
323 self.assertIs(pickle.loads(cPickle.dumps(True)), True)
324 self.assertIs(pickle.loads(cPickle.dumps(False)), False)
325 self.assertIs(pickle.loads(cPickle.dumps(True, True)), True)
326 self.assertIs(pickle.loads(cPickle.dumps(False, True)), False)
[all …]
Dtest_xrange.py5 import pickle
101 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
104 self.assertEqual(list(pickle.loads(pickle.dumps(r, proto))),
Dtest_copy_reg.py30 self.assertRaises(TypeError, copy_reg.pickle,
34 self.assertRaises(TypeError, copy_reg.pickle,
38 self.assertRaises(TypeError, copy_reg.pickle,
Dtest_collections.py7 import pickle, cPickle, copy
165 for module in pickle, cPickle:
674 pickle.loads(pickle.dumps(words, 0)),
675 pickle.loads(pickle.dumps(words, 1)),
676 pickle.loads(pickle.dumps(words, 2)),
677 pickle.loads(pickle.dumps(words, -1)),
926 pickle.loads(pickle.dumps(od, 0)),
927 pickle.loads(pickle.dumps(od, 1)),
928 pickle.loads(pickle.dumps(od, 2)),
929 pickle.loads(pickle.dumps(od, -1)),
Dtest_memoryio.py14 import pickle
385 for proto in range(2, pickle.HIGHEST_PROTOCOL):
387 obj2 = pickle.loads(pickle.dumps(obj, protocol=proto))
393 self.assertRaises(ValueError, pickle.dumps, obj, proto)
601 return pickle.loads(pickle.dumps(pyio.StringIO(*args, **kwargs)))
695 return pickle.loads(pickle.dumps(io.StringIO(*args, **kwargs),
Dtest_deque.py7 import cPickle as pickle namespace
459 for i in range(pickle.HIGHEST_PROTOCOL + 1):
460 s = pickle.dumps(d, i)
461 e = pickle.loads(s)
587 s = pickle.dumps(d)
588 e = pickle.loads(s)
603 s = pickle.dumps(d)
604 e = pickle.loads(s)
Dtest_signal.py5 import pickle
167 pickle.dump(traceback.format_exc(), done_w)
169 pickle.dump(None, done_w)
180 tb = pickle.load(done_r)
Dtest_random.py6 import pickle
137 state = pickle.dumps(self.gen)
139 newgen = pickle.loads(state)
152 r = pickle.load(f)
223 self.assertRaises(NotImplementedError, pickle.dumps, self.gen)
Dtest_ast.py193 import pickle
194 mods = [pickle]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dgrammar.py16 import pickle
90 pickle.dump(self.__dict__, f, 2)
96 d = pickle.load(f)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dpickle2db.py46 import cPickle as pickle namespace
48 import pickle
136 (key, val) = pickle.load(pfile)
Ddb2pickle.py41 import cPickle as pickle namespace
43 import pickle
127 pickle.dump((k, db[k]), pfile, 1==1)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpickletools.py620 from pickle import decode_long
1764 import pickle, re
1767 for name in pickle.__all__:
1772 picklecode = getattr(pickle, name)
1807 def genops(pickle): argument
1833 if isinstance(pickle, str):
1834 pickle = StringIO.StringIO(pickle)
1836 if hasattr(pickle, "tell"):
1837 getpos = pickle.tell
1843 code = pickle.read(1)
[all …]
Dcopy_reg.py14 def pickle(ob_type, pickle_function, constructor_ob=None): function
42 pickle(complex, pickle_complex, complex)
Dtrace.py63 pickle = cPickle variable
65 import pickle
242 pickle.load(open(self.infile, 'rb'))
352 pickle.dump((self.counts, self.calledfuncs, self.callers),
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dserver.py5 import pickle
70 rp = pickle.Unpickler(rf)
91 wp = pickle.Pickler(wf)
Dclient.py5 import pickle
82 wp = pickle.Pickler(self._wf)
111 rp = pickle.Unpickler(self._rf)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_runner.py4 import pickle
232 for protocol in range(pickle.HIGHEST_PROTOCOL + 1):
233 s = pickle.dumps(runner, protocol=protocol)
234 obj = pickle.loads(s)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcopy_reg.py14 def pickle(ob_type, pickle_function, constructor_ob=None): function
42 pickle(complex, pickle_complex, complex)
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/
Dprofile.py18 import pickle
241 pickle.dump((modules, functions), open(symbols_file, "w"))
247 (modules, functions) = pickle.load(open(symbols_file, "r"))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
Dpybench.py42 pickle = cPickle variable
44 import pickle
882 bench = pickle.load(f)
895 bench = pickle.load(f)
950 pickle.dump(bench,f)

12