Searched refs:pickler (Results 1 - 5 of 5) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_pickle.py | 60 pickler = pickle._Pickler variable in PyPicklerTests 65 p = self.pickler(f, proto, **kwargs) 96 class PersPickler(self.pickler): 116 pickler = pickle._Pickler variable in PyPersPicklerTests 123 pickler = pickle._Pickler variable in PyIdPersPicklerTests 131 pickler = Pickler(f, proto) 132 pickler.dump('abc') 134 pickler = Pickler(io.BytesIO()) 135 self.assertEqual(pickler.persistent_id('def'), 'def') 136 r = weakref.ref(pickler) 249 pickler = _pickle.Pickler global() variable in .CPicklerTests 253 pickler = _pickle.Pickler global() variable in .CPersPicklerTests 257 pickler = _pickle.Pickler global() variable in .CIdPersPicklerTests 261 pickler = _pickle.Pickler global() variable in .CDumpPickle_LoadPickle 265 pickler = pickle._Pickler global() variable in .DumpPickle_CLoadPickle [all...] |
H A D | pickletester.py | 2607 if not hasattr(self, 'pickler'): 2610 pickler = self.pickler(buf, protocol=proto) 2611 pickler.fast = fast 2612 pickler.dump(obj) 2671 """Accumulate pickler output in a list of raw chunks.""" 2688 # The C pickler issues one call to write per-frame (header and 2689 # contents) while Python pickler issues two calls to write: one for 2692 self.pickler(writer, proto).dump(objects) 3117 if not hasattr(self, "pickler") [all...] |
H A D | datetimetester.py | 200 for pickler, unpickler, proto in pickle_choices: 201 green = pickler.dumps(orig, proto) 219 for pickler, unpickler, proto in pickle_choices: 220 green = pickler.dumps(orig, proto) 385 for pickler, unpickler, proto in pickle_choices: 386 tz_copy = unpickler.loads(pickler.dumps(tz, proto)) 389 for pickler, unpickler, proto in pickle_choices: 390 tz_copy = unpickler.loads(pickler.dumps(tz, proto)) 684 for pickler, unpickler, proto in pickle_choices: 685 green = pickler [all...] |
/third_party/python/Lib/ |
H A D | pickletools.py | 97 # be readable forever. The pickler can generally be told to restrict itself to 2367 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 [all...] |
/third_party/python/Modules/ |
H A D | _pickle.c | 382 (pickler -> bound method of pickler -> pickler) */ 712 PicklerObject *pickler; /* Pickler whose memo table we're proxying. */ member 729 A custom hashtable mapping void* to Python ints. This is used by the pickler 1048 * file and reuse the pickler buffer for the next frame so as in _Pickler_OpcodeBoundary() 4552 Clears the pickler's "memo". 4555 pickler has already seen, so that shared or recursive objects are 4702 The optional *protocol* argument tells the pickler to use the given 4790 * pickler 4952 PicklerMemoProxy_New(PicklerObject *pickler) PicklerMemoProxy_New() argument 4985 PicklerObject *pickler = Pickler_set_memo() local 7681 PicklerObject *pickler = _Pickler_New(); _pickle_dump_impl() local 7746 PicklerObject *pickler = _Pickler_New(); _pickle_dumps_impl() local [all...] |
Completed in 19 milliseconds