/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_pickle.py | 1 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 …]
|
D | pickletester.py | 2 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 …]
|
D | test_pickletools.py | 1 import pickle 10 return pickletools.optimize(pickle.dumps(arg, proto)) 13 return pickle.loads(buf) 15 module = pickle
|
D | test_xpickle.py | 11 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
|
D | test_bool.py | 308 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 …]
|
D | test_xrange.py | 5 import pickle 101 for proto in range(pickle.HIGHEST_PROTOCOL + 1): 104 self.assertEqual(list(pickle.loads(pickle.dumps(r, proto))),
|
D | test_copy_reg.py | 30 self.assertRaises(TypeError, copy_reg.pickle, 34 self.assertRaises(TypeError, copy_reg.pickle, 38 self.assertRaises(TypeError, copy_reg.pickle,
|
D | test_collections.py | 7 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)),
|
D | test_memoryio.py | 14 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),
|
D | test_deque.py | 7 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)
|
D | test_signal.py | 5 import pickle 167 pickle.dump(traceback.format_exc(), done_w) 169 pickle.dump(None, done_w) 180 tb = pickle.load(done_r)
|
D | test_random.py | 6 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)
|
D | test_ast.py | 193 import pickle 194 mods = [pickle]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | grammar.py | 16 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/ |
D | pickle2db.py | 46 import cPickle as pickle namespace 48 import pickle 136 (key, val) = pickle.load(pfile)
|
D | db2pickle.py | 41 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/ |
D | pickletools.py | 620 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 …]
|
D | copy_reg.py | 14 def pickle(ob_type, pickle_function, constructor_ob=None): function 42 pickle(complex, pickle_complex, complex)
|
D | trace.py | 63 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/ |
D | server.py | 5 import pickle 70 rp = pickle.Unpickler(rf) 91 wp = pickle.Pickler(wf)
|
D | client.py | 5 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/ |
D | test_runner.py | 4 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/ |
D | copy_reg.py | 14 def pickle(ob_type, pickle_function, constructor_ob=None): function 42 pickle(complex, pickle_complex, complex)
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/ |
D | profile.py | 18 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/ |
D | pybench.py | 42 pickle = cPickle variable 44 import pickle 882 bench = pickle.load(f) 895 bench = pickle.load(f) 950 pickle.dump(bench,f)
|