Home
last modified time | relevance | path

Searched refs:cPickle (Results 1 – 25 of 82) 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)),
Dtest_exceptions.py6 import pickle, cPickle
302 for p in pickle, cPickle:
341 for p in pickle, cPickle:
/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)
Dtest_dbtables.py25 import cPickle
26 pickle = cPickle
/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)
Ddb2pickle.py41 import cPickle as pickle
Dpickle2db.py46 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/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/pybind11/
Dsetup.cfg11 # camelcase 'cPickle' imported as lowercase 'pickle'
/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/pybind11/tests/
Dtest_pickling.py5 import cPickle as pickle # Use cPickle on Python 2.7
/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
/external/autotest/client/bin/
Dprespawner.py10 import cPickle as pickle, os, sys

1234