Home
last modified time | relevance | path

Searched refs:pickler (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_pickle.py57 pickler = pickle._Pickler variable in PyPicklerTests
62 p = self.pickler(f, proto, **kwargs)
93 class PersPickler(self.pickler):
113 pickler = pickle._Pickler variable in PyPersPicklerTests
120 pickler = pickle._Pickler variable in PyIdPersPicklerTests
128 pickler = Pickler(f, proto)
129 pickler.dump('abc')
131 pickler = Pickler(io.BytesIO())
132 self.assertEqual(pickler.persistent_id('def'), 'def')
133 r = weakref.ref(pickler)
[all …]
Dpickletester.py2412 pickler = self.pickler(buf, protocol=proto)
2413 pickler.fast = fast
2414 pickler.dump(obj)
2494 self.pickler(writer, proto).dump(objects)
3324 pickler = self.pickler_class(f, proto)
3326 pickler.dump(data)
3333 pickler.dump(data)
3337 pickler.clear_memo()
3341 pickler.dump(data)
3351 pickler = self.pickler_class(f)
[all …]
Ddatetimetester.py192 for pickler, unpickler, proto in pickle_choices:
193 green = pickler.dumps(orig, proto)
210 for pickler, unpickler, proto in pickle_choices:
211 green = pickler.dumps(orig, proto)
374 for pickler, unpickler, proto in pickle_choices:
375 tz_copy = unpickler.loads(pickler.dumps(tz, proto))
378 for pickler, unpickler, proto in pickle_choices:
379 tz_copy = unpickler.loads(pickler.dumps(tz, proto))
673 for pickler, unpickler, proto in pickle_choices:
674 green = pickler.dumps(orig, proto)
[all …]
/external/python/cpython2/Lib/test/
Dpickletester.py1814 pickler = self.pickler_class(f)
1816 pickler.dump(data)
1823 pickler.dump(data)
1827 pickler.clear_memo()
1831 pickler.dump(data)
1841 pickler = self.pickler_class(f)
1843 pickler.dump(data)
1848 primed.memo = pickler.memo
1859 pickler = self.pickler_class(f)
1861 pickler.dump(data)
[all …]
Dtest_datetime.py19 pickle_choices = [(pickler, unpickler, proto)
20 for pickler in pickle, cPickle
105 for pickler, unpickler, proto in pickle_choices:
106 green = pickler.dumps(orig, proto)
118 for pickler, unpickler, proto in pickle_choices:
119 green = pickler.dumps(orig, proto)
320 for pickler, unpickler, proto in pickle_choices:
321 green = pickler.dumps(orig, proto)
1007 for pickler, unpickler, proto in pickle_choices:
1008 green = pickler.dumps(orig, proto)
[all …]
/external/python/cpython3/Lib/
Dpickletools.py2367 pickler = pickle._Pickler(out, proto)
2369 pickler.framer.start_framing()
2376 data = pickler.put(idx)
2380 data = pickler.get(newids[arg])
2383 frameless = len(data) > pickler.framer._FRAME_SIZE_TARGET
2384 pickler.framer.commit_frame(force=frameless)
2386 pickler.framer.file_write(data)
2388 pickler.write(data)
2389 pickler.framer.end_framing()
/external/python/cpython3/Modules/
Dparsermodule.c1199 PyObject *func, *pickler; in PyInit_parser() local
1206 pickler = _PyObject_GetAttrId(module, &PyId__pickler); in PyInit_parser()
1209 && (pickler != NULL)) { in PyInit_parser()
1212 res = PyObject_CallFunctionObjArgs(func, &PyST_Type, pickler, in PyInit_parser()
1218 Py_XDECREF(pickler); in PyInit_parser()
D_pickle.c700 PicklerObject *pickler; /* Pickler whose memo table we're proxying. */ member
4801 if (self->pickler->memo) in _pickle_PicklerMemoProxy_clear_impl()
4802 PyMemoTable_Clear(self->pickler->memo); in _pickle_PicklerMemoProxy_clear_impl()
4821 memo = self->pickler->memo; in _pickle_PicklerMemoProxy_copy_impl()
4894 Py_XDECREF(self->pickler); in PicklerMemoProxy_dealloc()
4902 Py_VISIT(self->pickler); in PicklerMemoProxy_traverse()
4909 Py_CLEAR(self->pickler); in PicklerMemoProxy_clear()
4945 PicklerMemoProxy_New(PicklerObject *pickler) in PicklerMemoProxy_New() argument
4952 Py_INCREF(pickler); in PicklerMemoProxy_New()
4953 self->pickler = pickler; in PicklerMemoProxy_New()
[all …]
/external/libchrome/base/debug/
Dactivity_tracker.cc1130 Pickle pickler(pickle, pickle_size); in DecodeTo() local
1131 PickleIterator iter(pickler); in DecodeTo()
1139 Pickle pickler; in CreateFrom() local
1140 pickler.WriteString(info.file); in CreateFrom()
1141 pickler.WriteString(info.debug_file); in CreateFrom()
1142 size_t required_size = offsetof(ModuleInfoRecord, pickle) + pickler.size(); in CreateFrom()
1153 memcpy(record->pickle, pickler.data(), pickler.size()); in CreateFrom()
1154 record->pickle_size = pickler.size(); in CreateFrom()
/external/python/cpython2/Doc/library/
Dpickle.rst140 To serialize an object hierarchy, you first create a pickler, then you call the
141 pickler's :meth:`dump` method. To de-serialize a data stream, you first create
271 Clears the pickler's "memo". The memo is the data structure that remembers
272 which objects the pickler has already seen, so that shared or recursive objects
281 the memo for a :mod:`pickle` module pickler, you could do the following::
403 between the pickler/unpickler and the objects that are being serialized. This
571 functions on the pickler and unpickler. [#]_
574 :attr:`~Pickler.persistent_id` attribute of the pickler object and the
577 To pickle objects that have an external persistent id, the pickler must have a
580 When ``None`` is returned, the pickler simply pickles the object as normal.
[all …]
Dpickletools.rst29 pickler. Successive levels, indicated by ``MARK`` opcodes in the stream, are
/external/python/cpython3/Doc/library/
Dcopyreg.rst41 :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler
Dpickle.rst303 The optional *protocol* argument, an integer, tells the pickler to use
350 A pickler object's dispatch table is a registry of *reduction
358 By default, a pickler object will not have a
361 However, to customize the pickling for a specific pickler object
741 pickler and unpickler, :meth:`~Pickler.persistent_id` and
744 To pickle objects that have an external persistent ID, the pickler must have a
747 When ``None`` is returned, the pickler simply pickles the object as normal.
748 When a persistent ID string is returned, the pickler will pickle that object,
767 pickler with a private dispatch table.
Dpickletools.rst89 pickler. Successive levels, indicated by ``MARK`` opcodes in the
/external/python/cpython2/Modules/
DcPickle.c5693 Picklerobject *pickler = 0; in cpm_dump() local
5700 if (!( pickler = newPicklerobject(file, proto))) in cpm_dump()
5703 if (dump(pickler, ob) < 0) in cpm_dump()
5710 Py_XDECREF(pickler); in cpm_dump()
5722 Picklerobject *pickler = 0; in cpm_dumps() local
5732 if (!( pickler = newPicklerobject(file, proto))) in cpm_dumps()
5735 if (dump(pickler, ob) < 0) in cpm_dumps()
5741 Py_XDECREF(pickler); in cpm_dumps()
Dparsermodule.c3515 PyObject *func, *pickler; in initparser() local
3519 pickler = PyObject_GetAttrString(module, "_pickler"); in initparser()
3522 && (pickler != NULL)) { in initparser()
3525 res = PyObject_CallFunctionObjArgs(func, &PyST_Type, pickler, in initparser()
3531 Py_XDECREF(pickler); in initparser()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst695 The pickler now uses less memory when serializing large bytes and str
/external/python/cpython3/Doc/whatsnew/
D3.1.rst388 Python. But now when protocol 2 or lower is selected, the pickler will
D3.3.rst1719 :attr:`~pickle.Pickler.dispatch_table` attribute allowing per-pickler
/external/python/cpython3/Misc/
DHISTORY8704 attribute which allows setting custom per-pickler reduction functions.
22117 completely. The undocumented pickler and unpickler functions no
/external/python/cpython2/Misc/
DHISTORY4733 completely. The undocumented pickler and unpickler functions no
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt150197 pickler %2769 pˈɪklər, pˈɪkələr
Dinternal_raw_IPA.txt126048 pickler %20155 pˈɪklər, pˈɪkələr