Home
last modified time | relevance | path

Searched refs:PicklingError (Results 1 – 25 of 31) 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/timeout-decorator/
DCHANGES.rst6 - Fixed issue with PicklingError causes the timeout to never be reached.
/external/python/cpython3/Modules/
D_pickle.c144 PyObject *PicklingError; member
202 Py_CLEAR(st->PicklingError); in _Pickle_ClearState()
1738 PyErr_SetString(st->PicklingError, in memo_get()
1795 PyErr_SetString(st->PicklingError, in memo_put()
2519 PyErr_SetString(st->PicklingError, in save_picklebuffer()
2529 PyErr_SetString(st->PicklingError, in save_picklebuffer()
3625 PyErr_Format(st->PicklingError, in save_global()
3635 PyErr_Format(st->PicklingError, in save_global()
3642 PyErr_Format(st->PicklingError, in save_global()
3681 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
1118 from pickle import PicklingError
1119 raise PicklingError("Error in pickle")
1177 self._check_crash(PicklingError, id, ErrorAtPickle())
1216 self._check_crash(PicklingError, _return_instance, ErrorAtPickle)
1261 with self.assertRaises(PicklingError):
Dpickletester.py2405 except pickle.PicklingError:
2409 except pickle.PicklingError:
2836 with self.assertRaises((AttributeError, pickle.PicklingError)):
2842 with self.assertRaises((AttributeError, pickle.PicklingError)):
2847 with self.assertRaises((AttributeError, pickle.PicklingError)):
3371 self.assertRaises(pickle.PicklingError, BadPickler().dump, 0)
3480 self.assertRaises(pickle.PicklingError, self.dumps, non_ascii_str, 0)
3733 with self.assertRaises(pickle.PicklingError):
Dtest_zlib.py715 with self.assertRaises((TypeError, pickle.PicklingError)):
720 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_coroutines.py2031 with self.assertRaises((TypeError, pickle.PicklingError)):
2037 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_generators.py161 with self.assertRaises((TypeError, pickle.PicklingError)):
Dtest_enum.py10 from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL
660 test_pickle_exception(self.assertRaises, PicklingError, MyBrokenEnum)
845 test_pickle_exception(self.assertRaises, PicklingError, BadPickle)
1519 test_pickle_exception(self.assertRaises, PicklingError, NEI)
/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/multiprocessing/
Dmanagers.py56 from cPickle import PicklingError
58 from pickle import PicklingError
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py283 except (IOError, pickle.PicklingError) as e:
/external/python/cpython2/Lib/idlelib/
Drpc.py325 except pickle.PicklingError:
/external/python/cpython3/Lib/idlelib/
Drpc.py336 except pickle.PicklingError:
/external/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py211 raise pickle.PicklingError(
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py1467 with self.assertRaises(pickle.PicklingError):
1491 with self.assertRaises(pickle.PicklingError):
/external/python/cpython2/Doc/library/
Dpickle.rst227 .. exception:: PicklingError
359 Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`
/external/python/cpython3/Lib/logging/
D__init__.py1774 raise pickle.PicklingError('logger cannot be pickled')
/external/python/cpython3/Doc/library/
Dpickle.rst278 .. exception:: PicklingError
516 Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`

12