/external/python/cpython2/Lib/test/ |
D | test_cpickle.py | 1 import cPickle 49 self.dumps = cPickle.dumps 50 self.loads = cPickle.loads 52 error = cPickle.BadPickleGet 53 module = cPickle 54 bad_stack_errors = (cPickle.UnpicklingError,) 56 truncated_errors = (cPickle.UnpicklingError, EOFError, 64 p = cPickle.Unpickler(f) 69 error = cPickle.BadPickleGet 70 bad_stack_errors = (cPickle.UnpicklingError,) [all …]
|
D | test_xpickle.py | 8 import cPickle 41 return cPickle.dumps(arg, proto) 49 error = cPickle.BadPickleGet 57 return cPickle.loads(buf) 184 module = cPickle 186 error = cPickle.BadPickleGet 202 module = cPickle 204 error = cPickle.BadPickleGet 215 module = cPickle 217 error = cPickle.BadPickleGet [all …]
|
D | test_bool.py | 313 import cPickle 314 for proto in range(cPickle.HIGHEST_PROTOCOL + 1): 315 self.assertIs(cPickle.loads(cPickle.dumps(True, proto)), True) 316 self.assertIs(cPickle.loads(cPickle.dumps(False, proto)), False) 319 import pickle, cPickle 321 self.assertIs(pickle.loads(cPickle.dumps(True, proto)), True) 322 self.assertIs(pickle.loads(cPickle.dumps(False, proto)), False) 323 self.assertIs(cPickle.loads(pickle.dumps(True, proto)), True) 324 self.assertIs(cPickle.loads(pickle.dumps(False, proto)), False) 327 import pickle, cPickle [all …]
|
D | test_collections.py | 7 import cPickle 208 for module in pickle, cPickle: 948 cPickle.loads(cPickle.dumps(words, 0)), 949 cPickle.loads(cPickle.dumps(words, 1)), 950 cPickle.loads(cPickle.dumps(words, 2)), 951 cPickle.loads(cPickle.dumps(words, -1)),
|
D | test_exceptions.py | 6 import pickle, cPickle 302 for p in pickle, cPickle: 341 for p in pickle, cPickle:
|
/external/python/cpython2/Lib/bsddb/ |
D | dbshelve.py | 40 import cPickle # Will be converted to "pickle" by "2to3" 43 import cPickle 62 import cPickle 67 HIGHEST_PROTOCOL = cPickle.HIGHEST_PROTOCOL 69 return cPickle.dumps(object, protocol=protocol) 151 return cPickle.loads(data) 206 newitems.append( (k, cPickle.loads(v)) ) 215 return map(cPickle.loads, values) 234 data = cPickle.loads(priData) 236 data = cPickle.loads(bytes(priData, "iso8859-1")) # 8 bits [all …]
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_pickle.py | 8 import cPickle 10 cPickle = None variable 12 cPickle = None variable 58 if cPickle: 60 self._base_test_pickle_DBError(pickle=cPickle)
|
D | test_dbtables.py | 25 import cPickle 26 pickle = cPickle
|
/external/tensorflow/tensorflow/python/keras/datasets/ |
D | cifar.py | 23 from six.moves import cPickle 39 d = cPickle.load(f) 41 d = cPickle.load(f, encoding='bytes')
|
/external/autotest/server/ |
D | subcommand.py | 3 import sys, os, signal, time, cPickle, logging 44 results.append(cPickle.load(task.result_pickle)) 181 os.write(w, cPickle.dumps(result, cPickle.HIGHEST_PROTOCOL)) 186 os.write(w, cPickle.dumps(e, cPickle.HIGHEST_PROTOCOL))
|
D | subcommand_unittest.py | 99 self.god.stub_function(subcommand.cPickle, 'dumps') 119 subcommand.cPickle.dumps.expect_call(True, 120 subcommand.cPickle.HIGHEST_PROTOCOL).and_return('True') 143 subcommand.cPickle.dumps.expect_call(error, 144 subcommand.cPickle.HIGHEST_PROTOCOL).and_return('error') 250 self.god.stub_function(subcommand.cPickle, 'load') 282 (subcommand.cPickle.load.expect_call(task.result_pickle) 295 (subcommand.cPickle.load.expect_call(task.result_pickle) 315 (subcommand.cPickle.load.expect_call(task.result_pickle) 328 (subcommand.cPickle.load.expect_call(tasklist[0].result_pickle) [all …]
|
/external/scapy/scapy/ |
D | main.py | 247 six.moves.cPickle.dump(to_be_saved, f, pickleProto) 260 s = six.moves.cPickle.load(gzip.open(fname,"rb")) 263 s = six.moves.cPickle.load(open(fname,"rb")) 283 s = six.moves.cPickle.load(gzip.open(fname,"rb")) 285 s = six.moves.cPickle.load(open(fname,"rb")) 308 SESSION = six.moves.cPickle.load(gzip.open(session_name,"rb")) 310 SESSION = six.moves.cPickle.load(open(session_name,"rb"))
|
/external/python/cpython2/Tools/scripts/ |
D | find_recursionlimit.py | 75 import cPickle 87 cPickle.dumps(l, protocol=-1)
|
D | db2pickle.py | 41 import cPickle as pickle
|
D | pickle2db.py | 46 import cPickle as pickle
|
/external/webrtc/third_party/gtest-parallel/ |
D | gtest-parallel | 15 import cPickle 201 times = cPickle.load(f) 202 except (EOFError, IOError, cPickle.UnpicklingError, zlib.error): 233 cPickle.dump(self.__times, gzf, cPickle.HIGHEST_PROTOCOL)
|
/external/python/cpython2/Doc/library/ |
D | pickle.rst | 26 :mod:`cPickle` module. 38 The :mod:`pickle` module has an optimized cousin called the :mod:`cPickle` 39 module. As its name implies, :mod:`cPickle` is written in C, so it can be up to 41 of the :func:`Pickler` and :func:`Unpickler` classes, because in :mod:`cPickle` 43 functionality, and can benefit from the improved performance of :mod:`cPickle`. 47 collectively describe the :mod:`pickle` and :mod:`cPickle` modules. 279 created by :mod:`cPickle`. In the :mod:`pickle` module, picklers have an 331 :class:`Unpickler` objects created with the :mod:`cPickle` module. 637 In the :mod:`cPickle` module, the unpickler's :attr:`~Unpickler.persistent_load` 646 .. BAW: Both pickle and cPickle support something called inst_persistent_id() [all …]
|
D | copy_reg.rst | 14 module: cPickle 18 specific objects. The :mod:`pickle`, :mod:`cPickle`, and :mod:`copy` modules
|
/external/libchrome/mojo/public/tools/bindings/ |
D | mojom_bindings_generator.py | 10 import cPickle 281 WriteFile(cPickle.dumps(ast), output_file) 282 except (IOError, cPickle.PicklingError) as e: 289 return cPickle.load(f) 290 except (IOError, cPickle.UnpicklingError) as e:
|
/external/python/pybind11/ |
D | setup.cfg | 11 # camelcase 'cPickle' imported as lowercase 'pickle'
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7a2.rst | 166 Remove py3k warning when importing cPickle. 2to3 handles renaming of 167 `cPickle` to `pickle`. The warning was annoying since there's no 168 alternative to cPickle if you care about performance. Patch by Florent 178 Fix possible crash in cPickle on invalid input. Patch by Victor Stinner.
|
/external/python/pybind11/tests/ |
D | test_pickling.py | 5 import cPickle as pickle # Use cPickle on Python 2.7
|
/external/python/cpython2/RISCOS/ |
D | Makefile | 67 @.^.Lib.cPickle/pyd\ 244 @.^.Lib.cPickle/pyd: @.^.Modules.o.cPickle s.linktab 245 $(MAKEDLK) -d @.^.Lib.cPickle/pyd -s s.linktab -o @.^.Modules.o.cPickle -e initcPickle
|
/external/libchrome/third_party/jinja2/ |
D | _compat.py | 60 import cPickle as pickle
|
/external/autotest/client/bin/ |
D | prespawner.py | 10 import cPickle as pickle, os, sys
|