Home
last modified time | relevance | path

Searched refs:PicklingError (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython3/Lib/
Dpickle.py77 class PicklingError(PickleError): class
481 raise PicklingError("Pickler.__init__() was not called by "
584 raise PicklingError("Can't pickle %r object: %r" %
594 raise PicklingError("%s must return string or tuple" % reduce)
599 raise PicklingError("Tuple returned by %s must have "
618 raise PicklingError(
626 raise PicklingError("args from save_reduce() must be a tuple")
628 raise PicklingError("func from save_reduce() must be callable")
637 raise PicklingError("args[0] from {} args has no __new__"
640 raise PicklingError("args[0] from {} args has the wrong class"
[all …]
/external/python/cpython2/Lib/
Dpickle.py62 class PicklingError(PickleError): class
312 raise PicklingError("Can't pickle %r object: %r" %
322 raise PicklingError("%s must return string or tuple" % reduce)
327 raise PicklingError("Tuple returned by %s must have "
351 raise PicklingError("args from reduce() should be a tuple")
355 raise PicklingError("func from reduce should be callable")
390 raise PicklingError(
393 raise PicklingError(
752 raise PicklingError(
757 raise PicklingError(
/external/python/cpython2/Modules/
DcPickle.c108 static PyObject *PicklingError; variable
759 PyErr_SetString(PicklingError, "no int where int expected in memo"); in get()
790 PyErr_SetString(PicklingError, in get()
879 PyErr_SetString(PicklingError, in put2()
2105 PyErr_SetString(PicklingError, "class has no name"); in save_inst()
2224 cPickle_ErrFormat(PicklingError, in save_global()
2232 cPickle_ErrFormat(PicklingError, in save_global()
2240 cPickle_ErrFormat(PicklingError, in save_global()
2265 cPickle_ErrFormat(PicklingError, "Can't pickle %s: " in save_global()
2272 cPickle_ErrFormat(PicklingError, "Can't pickle %s: " in save_global()
[all …]
/external/python/cpython3/Modules/
D_pickle.c143 PyObject *PicklingError; member
201 Py_CLEAR(st->PicklingError); in _Pickle_ClearState()
1737 PyErr_SetString(st->PicklingError, in memo_get()
1794 PyErr_SetString(st->PicklingError, in memo_put()
2523 PyErr_SetString(st->PicklingError, in save_picklebuffer()
2533 PyErr_SetString(st->PicklingError, in save_picklebuffer()
3629 PyErr_Format(st->PicklingError, in save_global()
3639 PyErr_Format(st->PicklingError, in save_global()
3646 PyErr_Format(st->PicklingError, in save_global()
3685 PyErr_Format(st->PicklingError, in save_global()
[all …]
/external/python/cpython2/Lib/test/
Dtest_dictviews.py219 self.assertRaises((TypeError, pickle.PicklingError),
221 self.assertRaises((TypeError, pickle.PicklingError),
223 self.assertRaises((TypeError, pickle.PicklingError),
Dpickletester.py1501 except (AttributeError, pickle.PicklingError, cPickle.PicklingError):
1505 except (AttributeError, pickle.PicklingError, cPickle.PicklingError):
Dtest_zlib.py582 with self.assertRaises((TypeError, pickle.PicklingError)):
587 with self.assertRaises((TypeError, pickle.PicklingError)):
/external/python/cpython3/Lib/test/
Dtest_dictviews.py303 self.assertRaises((TypeError, pickle.PicklingError),
305 self.assertRaises((TypeError, pickle.PicklingError),
307 self.assertRaises((TypeError, pickle.PicklingError),
Dtest_concurrent_futures.py22 from pickle import PicklingError
1069 from pickle import PicklingError
1070 raise PicklingError("Error in pickle")
1128 self._check_crash(PicklingError, id, ErrorAtPickle())
1167 self._check_crash(PicklingError, _return_instance, ErrorAtPickle)
1212 with self.assertRaises(PicklingError):
Dpickletester.py2239 except pickle.PicklingError:
2243 except pickle.PicklingError:
2670 with self.assertRaises((AttributeError, pickle.PicklingError)):
2676 with self.assertRaises((AttributeError, pickle.PicklingError)):
2681 with self.assertRaises((AttributeError, pickle.PicklingError)):
3192 self.assertRaises(pickle.PicklingError, BadPickler().dump, 0)
3301 self.assertRaises(pickle.PicklingError, self.dumps, non_ascii_str, 0)
3554 with self.assertRaises(pickle.PicklingError):
Dtest_zlib.py707 with self.assertRaises((TypeError, pickle.PicklingError)):
712 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_generators.py161 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_coroutines.py2023 with self.assertRaises((TypeError, pickle.PicklingError)):
2029 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_enum.py10 from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL
773 test_pickle_exception(self.assertRaises, PicklingError, BadPickle)
1446 test_pickle_exception(self.assertRaises, PicklingError, NEI)
/external/python/cpython2/Lib/multiprocessing/
Dmanagers.py56 from cPickle import PicklingError
58 from pickle import PicklingError
/external/python/enum34/enum/
Dtest.py1 from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL
650 self.assertRaises, PicklingError, self.NestedEnum.twigs,
672 test_pickle_exception(self.assertRaises, PicklingError, BadPickle)
1497 test_pickle_exception(self.assertRaises, PicklingError, NEI)
/external/python/cpython2/Lib/idlelib/
Drpc.py325 except pickle.PicklingError:
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py282 except (IOError, cPickle.PicklingError) as e:
/external/python/cpython3/Lib/idlelib/
Drpc.py336 except pickle.PicklingError:
DNEWS2x.txt337 - Fix typo in rpc.py, s/b "pickle.PicklingError" not "pickle.UnpicklingError".
/external/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py211 raise pickle.PicklingError(
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py1460 with self.assertRaises(pickle.PicklingError):
1482 with self.assertRaises(pickle.PicklingError):
/external/python/cpython3/Lib/logging/
D__init__.py1727 raise pickle.PicklingError('logger cannot be pickled')
/external/python/cpython2/Doc/library/
Dpickle.rst227 .. exception:: PicklingError
359 Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`
/external/python/cpython3/Doc/library/
Dpickle.rst278 .. exception:: PicklingError
516 Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`

12