Home
last modified time | relevance | path

Searched refs:cPickle (Results 1 – 25 of 99) sorted by relevance

1234

/external/python/cpython2/Lib/test/
Dtest_cpickle.py1 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 …]
Dtest_xpickle.py8 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 …]
Dtest_bool.py313 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 …]
Dtest_collections.py7 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)),
/external/python/cpython2/Lib/bsddb/
Ddbshelve.py40 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/
Dtest_pickle.py8 import cPickle
10 cPickle = None variable
12 cPickle = None variable
58 if cPickle:
60 self._base_test_pickle_DBError(pickle=cPickle)
/external/autotest/scheduler/
Ddrones_unittest.py6 import cPickle
45 mock_result = utils.CmdResult(stdout=cPickle.dumps('mock return'))
48 stdin=cPickle.dumps(mock_calls), stdout_tee=None,
67 mock_result = utils.CmdResult(stdout=cPickle.dumps(mock_return))
70 stdin=cPickle.dumps(drone.get_calls()), stdout_tee=None,
Ddrone_task_queue_unittest.py9 import cPickle
76 stdout=cPickle.dumps(self.mock_return))
79 stdin=cPickle.dumps(drone.get_calls()), stdout_tee=None,
91 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
94 stdin=cPickle.dumps(drone1.get_calls()), stdout_tee=None,
Dthread_lib_unittest.py9 import cPickle
64 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
67 stdin=cPickle.dumps(drone.get_calls()), stdout_tee=None,
200 stdout=cPickle.dumps(self.mock_return))
203 stdin=cPickle.dumps(drone.get_calls()), stdout_tee=None,
218 mock_result = utils.CmdResult(stdout=cPickle.dumps(self.mock_return))
221 stdin=cPickle.dumps(drone1.get_calls()), stdout_tee=None,
Ddrones.py3 import cPickle
93 stdin=cPickle.dumps(calls), stdout_tee=None,
96 return cPickle.loads(result.stdout)
/external/tensorflow/tensorflow/python/keras/datasets/
Dcifar.py23 from six.moves import cPickle
39 d = cPickle.load(f)
41 d = cPickle.load(f, encoding='bytes')
/external/autotest/server/
Dsubcommand.py3 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))
Dsubcommand_unittest.py99 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/
Dmain.py247 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/
Dfind_recursionlimit.py75 import cPickle
87 cPickle.dumps(l, protocol=-1)
Dpickle2db.py46 import cPickle as pickle
Ddb2pickle.py41 import cPickle as pickle
/external/webrtc/third_party/gtest-parallel/
Dgtest-parallel15 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/
Dpickle.rst26 :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 …]
Dcopy_reg.rst14 module: cPickle
18 specific objects. The :mod:`pickle`, :mod:`cPickle`, and :mod:`copy` modules
/external/autotest/client/common_lib/hosts/
Dbase_classes.py18 import cPickle, logging, os, re, time
574 return cPickle.loads(output)
601 input_data = cPickle.dumps(dict((path, None) for path in paths), 0)
604 return cPickle.loads(output)
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py10 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/cpython2/Misc/NEWS.d/
D2.7a2.rst166 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/cpython2/RISCOS/
DMakefile67 @.^.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.py60 import cPickle as pickle

1234