/external/python/cpython3/Lib/test/ |
D | test_pickle.py | 49 pickler = pickle._Pickler variable in PyPicklerTests 54 p = self.pickler(f, proto) 68 pickler = pickle._Pickler variable in InMemoryPickleTests 85 class PersPickler(self.pickler): 105 pickler = pickle._Pickler variable in PyPersPicklerTests 112 pickler = pickle._Pickler variable in PyIdPersPicklerTests 145 pickler = _pickle.Pickler variable in CPicklerTests 149 pickler = _pickle.Pickler variable in CPersPicklerTests 153 pickler = _pickle.Pickler variable in CIdPersPicklerTests 157 pickler = _pickle.Pickler variable in CDumpPickle_LoadPickle [all …]
|
D | pickletester.py | 2671 pickler = self.pickler_class(f) 2673 pickler.dump(data) 2680 pickler.dump(data) 2684 pickler.clear_memo() 2688 pickler.dump(data) 2698 pickler = self.pickler_class(f) 2700 pickler.dump(data) 2705 primed.memo = pickler.memo 2716 pickler = self.pickler_class(f) 2718 pickler.dump(data) [all …]
|
D | datetimetester.py | 181 for pickler, unpickler, proto in pickle_choices: 182 green = pickler.dumps(orig, proto) 199 for pickler, unpickler, proto in pickle_choices: 200 green = pickler.dumps(orig, proto) 339 for pickler, unpickler, proto in pickle_choices: 340 tz_copy = unpickler.loads(pickler.dumps(tz, proto)) 343 for pickler, unpickler, proto in pickle_choices: 344 tz_copy = unpickler.loads(pickler.dumps(tz, proto)) 590 for pickler, unpickler, proto in pickle_choices: 591 green = pickler.dumps(orig, proto) [all …]
|
/external/python/cpython2/Lib/test/ |
D | pickletester.py | 1771 pickler = self.pickler_class(f) 1773 pickler.dump(data) 1780 pickler.dump(data) 1784 pickler.clear_memo() 1788 pickler.dump(data) 1798 pickler = self.pickler_class(f) 1800 pickler.dump(data) 1805 primed.memo = pickler.memo 1816 pickler = self.pickler_class(f) 1818 pickler.dump(data) [all …]
|
D | test_datetime.py | 19 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) 967 for pickler, unpickler, proto in pickle_choices: 968 green = pickler.dumps(orig, proto) [all …]
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 615 PicklerObject *pickler; /* Pickler whose memo table we're proxying. */ member 4240 if (self->pickler->memo) in _pickle_PicklerMemoProxy_clear_impl() 4241 PyMemoTable_Clear(self->pickler->memo); in _pickle_PicklerMemoProxy_clear_impl() 4261 memo = self->pickler->memo; in _pickle_PicklerMemoProxy_copy_impl() 4334 Py_XDECREF(self->pickler); in PicklerMemoProxy_dealloc() 4342 Py_VISIT(self->pickler); in PicklerMemoProxy_traverse() 4349 Py_CLEAR(self->pickler); in PicklerMemoProxy_clear() 4385 PicklerMemoProxy_New(PicklerObject *pickler) in PicklerMemoProxy_New() argument 4392 Py_INCREF(pickler); in PicklerMemoProxy_New() 4393 self->pickler = pickler; in PicklerMemoProxy_New() [all …]
|
D | parsermodule.c | 1178 PyObject *func, *pickler; in PyInit_parser() local 1185 pickler = _PyObject_GetAttrId(module, &PyId__pickler); in PyInit_parser() 1188 && (pickler != NULL)) { in PyInit_parser() 1191 res = PyObject_CallFunctionObjArgs(func, &PyST_Type, pickler, in PyInit_parser() 1197 Py_XDECREF(pickler); in PyInit_parser()
|
/external/python/cpython3/Lib/ |
D | pickletools.py | 2322 pickler = pickle._Pickler(out, proto) 2324 pickler.framer.start_framing() 2330 data = pickler.put(idx) 2334 data = pickler.get(newids[arg]) 2337 pickler.framer.commit_frame() 2338 pickler.write(data) 2339 pickler.framer.end_framing()
|
/external/libchrome/base/debug/ |
D | activity_tracker.cc | 1118 Pickle pickler(pickle, pickle_size); in DecodeTo() local 1119 PickleIterator iter(pickler); in DecodeTo() 1126 Pickle pickler; in EncodeFrom() local 1128 pickler.WriteString(info.file) && pickler.WriteString(info.debug_file); in EncodeFrom() 1133 if (offsetof(ModuleInfoRecord, pickle) + pickler.size() > record_size) { in EncodeFrom() 1144 memcpy(pickle, pickler.data(), pickler.size()); in EncodeFrom() 1145 pickle_size = pickler.size(); in EncodeFrom()
|
/external/python/cpython2/Doc/library/ |
D | pickle.rst | 140 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 570 functions on the pickler and unpickler. [#]_ 573 :attr:`~Pickler.persistent_id` attribute of the pickler object and the 576 To pickle objects that have an external persistent id, the pickler must have a 579 When ``None`` is returned, the pickler simply pickles the object as normal. [all …]
|
D | pickletools.rst | 29 pickler. Successive levels, indicated by ``MARK`` opcodes in the stream, are
|
/external/python/cpython3/Doc/library/ |
D | pickle.rst | 193 The optional *protocol* argument, an integer, tells the pickler to use 289 The optional *protocol* argument, an integer, tells the pickler to use 322 A pickler object's dispatch table is a registry of *reduction 330 By default, a pickler object will not have a 333 However, to customize the pickling for a specific pickler object 645 pickler and unpickler, :meth:`~Pickler.persistent_id` and 648 To pickle objects that have an external persistent id, the pickler must have a 651 When ``None`` is returned, the pickler simply pickles the object as normal. 652 When a persistent ID string is returned, the pickler will pickle that object, 671 pickler with a private dispatch table.
|
D | copyreg.rst | 41 :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler
|
D | pickletools.rst | 89 pickler. Successive levels, indicated by ``MARK`` opcodes in the
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 5707 Picklerobject *pickler = 0; in cpm_dump() local 5714 if (!( pickler = newPicklerobject(file, proto))) in cpm_dump() 5717 if (dump(pickler, ob) < 0) in cpm_dump() 5724 Py_XDECREF(pickler); in cpm_dump() 5736 Picklerobject *pickler = 0; in cpm_dumps() local 5746 if (!( pickler = newPicklerobject(file, proto))) in cpm_dumps() 5749 if (dump(pickler, ob) < 0) in cpm_dumps() 5755 Py_XDECREF(pickler); in cpm_dumps()
|
D | parsermodule.c | 3474 PyObject *func, *pickler; in initparser() local 3478 pickler = PyObject_GetAttrString(module, "_pickler"); in initparser() 3481 && (pickler != NULL)) { in initparser() 3484 res = PyObject_CallFunctionObjArgs(func, &PyST_Type, pickler, in initparser() 3490 Py_XDECREF(pickler); in initparser()
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.1.rst | 388 Python. But now when protocol 2 or lower is selected, the pickler will
|
D | 3.3.rst | 1719 :attr:`~pickle.Pickler.dispatch_table` attribute allowing per-pickler
|
/external/python/cpython3/Misc/ |
D | HISTORY | 8704 attribute which allows setting custom per-pickler reduction functions. 22117 completely. The undocumented pickler and unpickler functions no
|
/external/python/cpython2/Misc/ |
D | HISTORY | 4733 completely. The undocumented pickler and unpickler functions no
|