Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_pickle.py41 unpickler = pickle._Unpickler variable in PyUnpicklerTests
49 u = self.unpickler(f, **kwds)
56 unpickler = pickle._Unpickler variable in PyPicklerTests
67 u = self.unpickler(f, **kwds)
100 class PersUnpickler(self.unpickler):
112 unpickler = pickle._Unpickler variable in PyPersPicklerTests
119 unpickler = pickle._Unpickler variable in PyIdPersPicklerTests
156 unpickler = Unpickler(io.BytesIO(self.dumps('abc', proto)))
157 self.assertEqual(unpickler.load(), 'abc')
158 unpickler = Unpickler(io.BytesIO())
[all …]
Ddatetimetester.py186 for pickler, unpickler, proto in pickle_choices:
188 derived = unpickler.loads(green)
204 for pickler, unpickler, proto in pickle_choices:
206 derived = unpickler.loads(green)
356 for pickler, unpickler, proto in pickle_choices:
357 tz_copy = unpickler.loads(pickler.dumps(tz, proto))
360 for pickler, unpickler, proto in pickle_choices:
361 tz_copy = unpickler.loads(pickler.dumps(tz, proto))
607 for pickler, unpickler, proto in pickle_choices:
609 derived = unpickler.loads(green)
[all …]
Dpickletester.py2908 unpickler = self.unpickler_class(io.BytesIO(first_pickled))
2909 unpickled_data1 = unpickler.load()
2914 primed.memo = unpickler.memo
2938 unpickler = self.unpickler_class(f)
2939 self.assertEqual(unpickler.load(), data1)
2945 self.assertEqual(unpickler.load(), data2)
2958 unpickler = self.unpickler_class(f)
2962 self.assertEqual(unpickler.load(), data1)
2965 self.assertRaises(EOFError, unpickler.load)
2983 unpickler = self.unpickler_class(f)
[all …]
/external/python/cpython3/Modules/
D_pickle.c687 UnpicklerObject *unpickler; member
6536 UnpicklerObject *unpickler = (UnpicklerObject*)self; in _pickle_Unpickler_load_impl() local
6542 if (unpickler->read == NULL) { in _pickle_Unpickler_load_impl()
6546 Py_TYPE(unpickler)->tp_name); in _pickle_Unpickler_load_impl()
6550 return load(unpickler); in _pickle_Unpickler_load_impl()
6842 _Unpickler_MemoCleanup(self->unpickler); in _pickle_UnpicklerMemoProxy_clear_impl()
6843 self->unpickler->memo = _Unpickler_NewMemo(self->unpickler->memo_size); in _pickle_UnpicklerMemoProxy_clear_impl()
6844 if (self->unpickler->memo == NULL) in _pickle_UnpicklerMemoProxy_clear_impl()
6864 for (i = 0; i < self->unpickler->memo_size; i++) { in _pickle_UnpicklerMemoProxy_copy_impl()
6868 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.rst653 pickler and unpickler, :meth:`~Pickler.persistent_id` and
661 along with a marker so that the unpickler will recognize it as a persistent ID.
663 To unpickle external objects, the unpickler must have a custom
788 permits the unpickler to import and invoke arbitrary code. Just consider what
796 In this example, the unpickler imports the :func:`os.system` function and then
806 Here is an example of an unpickler allowing only few safe classes from the
835 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.6.0b1.rst902 unpickler. UnpicklingError is now raised instead of AttributeError and
D3.5.1rc1.rst539 Added support for BINBYTES8 opcode in Python implementation of unpickler.
D3.5.2rc1.rst1539 Fixed SystemError raised by unpickler on broken pickle data.
D3.6.0a1.rst2401 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