Home
last modified time | relevance | path

Searched refs:unpickler (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_pickle.py43 unpickler = pickle._Unpickler variable in PyUnpicklerTests
51 u = self.unpickler(f, **kwds)
58 unpickler = pickle._Unpickler variable in PyPicklerTests
69 u = self.unpickler(f, **kwds)
102 class PersUnpickler(self.unpickler):
114 unpickler = pickle._Unpickler variable in PyPersPicklerTests
121 unpickler = pickle._Unpickler variable in PyIdPersPicklerTests
158 unpickler = Unpickler(io.BytesIO(self.dumps('abc', proto)))
159 self.assertEqual(unpickler.load(), 'abc')
160 unpickler = Unpickler(io.BytesIO())
[all …]
Ddatetimetester.py192 for pickler, unpickler, proto in pickle_choices:
194 derived = unpickler.loads(green)
210 for pickler, unpickler, proto in pickle_choices:
212 derived = unpickler.loads(green)
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:
675 derived = unpickler.loads(green)
[all …]
Dpickletester.py3381 unpickler = self.unpickler_class(io.BytesIO(first_pickled))
3382 unpickled_data1 = unpickler.load()
3387 primed.memo = unpickler.memo
3411 unpickler = self.unpickler_class(f)
3412 self.assertEqual(unpickler.load(), data1)
3418 self.assertEqual(unpickler.load(), data2)
3431 unpickler = self.unpickler_class(f)
3435 self.assertEqual(unpickler.load(), data1)
3438 self.assertRaises(EOFError, unpickler.load)
3461 unpickler = self.unpickler_class(f)
[all …]
/external/python/cpython3/Modules/
D_pickle.c705 UnpicklerObject *unpickler; member
7038 UnpicklerObject *unpickler = (UnpicklerObject*)self; in _pickle_Unpickler_load_impl() local
7044 if (unpickler->read == NULL) { in _pickle_Unpickler_load_impl()
7048 Py_TYPE(unpickler)->tp_name); in _pickle_Unpickler_load_impl()
7052 return load(unpickler); in _pickle_Unpickler_load_impl()
7359 _Unpickler_MemoCleanup(self->unpickler); in _pickle_UnpicklerMemoProxy_clear_impl()
7360 self->unpickler->memo = _Unpickler_NewMemo(self->unpickler->memo_size); in _pickle_UnpicklerMemoProxy_clear_impl()
7361 if (self->unpickler->memo == NULL) in _pickle_UnpicklerMemoProxy_clear_impl()
7381 for (i = 0; i < self->unpickler->memo_size; i++) { in _pickle_UnpicklerMemoProxy_copy_impl()
7385 value = self->unpickler->memo[i]; in _pickle_UnpicklerMemoProxy_copy_impl()
[all …]
/external/python/cpython2/Lib/test/
Dtest_datetime.py19 pickle_choices = [(pickler, unpickler, proto)
21 for unpickler in pickle, cPickle
105 for pickler, unpickler, proto in pickle_choices:
107 derived = unpickler.loads(green)
118 for pickler, unpickler, proto in pickle_choices:
120 derived = unpickler.loads(green)
320 for pickler, unpickler, proto in pickle_choices:
322 derived = unpickler.loads(green)
1007 for pickler, unpickler, proto in pickle_choices:
1009 derived = unpickler.loads(green)
[all …]
Dpickletester.py1871 unpickler = self.unpickler_class(cStringIO.StringIO(first_pickled))
1872 unpickled_data1 = unpickler.load()
1877 primed.memo = unpickler.memo
1901 unpickler = self.unpickler_class(f)
1902 self.assertEqual(unpickler.load(), data1)
1908 self.assertEqual(unpickler.load(), data2)
1920 unpickler = self.unpickler_class(f)
1924 self.assertEqual(unpickler.load(), data1)
1927 self.assertRaises(EOFError, unpickler.load)
1946 unpickler = self.unpickler_class(f)
[all …]
/external/python/cpython2/Doc/library/
Dpickle.rst142 an unpickler, then you call the unpickler's :meth:`load` method. The
403 between the pickler/unpickler and the objects that are being serialized. This
571 functions on the pickler and unpickler. [#]_
575 :attr:`~Unpickler.persistent_load` attribute of the unpickler object.
582 along with a marker so that the unpickler will recognize the string as a
585 To unpickle external objects, the unpickler must have a custom
637 In the :mod:`cPickle` module, the unpickler's :attr:`~Unpickler.persistent_load`
638 attribute can also be set to a Python list, in which case, when the unpickler
663 your unpickler. Unfortunately, exactly how you do this is different depending
672 finds to the unpickler's stack. Later on, this class will be assigned to the
[all …]
/external/python/cpython3/Doc/library/
Dpickle.rst741 pickler and unpickler, :meth:`~Pickler.persistent_id` and
749 along with a marker so that the unpickler will recognize it as a persistent ID.
751 To unpickle external objects, the unpickler must have a custom
1054 permits the unpickler to import and invoke arbitrary code. Just consider what
1062 In this example, the unpickler imports the :func:`os.system` function and then
1072 Here is an example of an unpickler allowing only few safe classes from the
1101 A sample usage of our unpickler working has intended::
/external/python/cpython2/Modules/
DcPickle.c5752 Unpicklerobject *unpickler = 0; in cpm_load() local
5755 if (!( unpickler = newUnpicklerobject(ob))) in cpm_load()
5758 res = load(unpickler); in cpm_load()
5761 Py_XDECREF(unpickler); in cpm_load()
5772 Unpicklerobject *unpickler = 0; in cpm_loads() local
5780 if (!( unpickler = newUnpicklerobject(file))) in cpm_loads()
5783 res = load(unpickler); in cpm_loads()
5787 Py_XDECREF(unpickler); in cpm_loads()
/external/python/cpython2/Misc/NEWS.d/
D2.7.12rc1.rst825 Fixed SystemError raised by CPickle unpickler on broken data.
/external/python/cpython3/Misc/NEWS.d/
D3.5.1rc1.rst539 Added support for BINBYTES8 opcode in Python implementation of unpickler.
D3.6.0b1.rst902 unpickler. UnpicklingError is now raised instead of AttributeError and
D3.5.2rc1.rst1538 Fixed SystemError raised by unpickler on broken pickle data.
D3.6.0a1.rst2400 Fixed SystemError raised by unpickler on broken pickle data.
/external/python/cpython3/Misc/
DHISTORY278 - Issue #23914: Fixed SystemError raised by unpickler on broken pickle data.
356 unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
4825 - Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
22117 completely. The undocumented pickler and unpickler functions no
/external/python/cpython2/Misc/
DHISTORY4733 completely. The undocumented pickler and unpickler functions no