Home
last modified time | relevance | path

Searched refs:__setstate__ (Results 1 – 25 of 50) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_memoryio.py741 memio.__setstate__((b"no error", 0, None))
742 memio.__setstate__((bytearray(b"no error"), 0, None))
743 memio.__setstate__((b"no error", 0, {'spam': 3}))
744 self.assertRaises(ValueError, memio.__setstate__, (b"", -1, None))
745 self.assertRaises(TypeError, memio.__setstate__, ("unicode", 0, None))
746 self.assertRaises(TypeError, memio.__setstate__, (b"", 0.0, None))
747 self.assertRaises(TypeError, memio.__setstate__, (b"", 0, 0))
748 self.assertRaises(TypeError, memio.__setstate__, (b"len-test", 0))
749 self.assertRaises(TypeError, memio.__setstate__)
750 self.assertRaises(TypeError, memio.__setstate__, 0)
[all …]
Dtest_xml_etree_c.py115 elem.__setstate__({'tag': 42}) # shouldn't cause an assertion failure
119 elem.__setstate__({'tag': 42}) # shouldn't cause an assertion failure
140 elem.__setstate__({'tag': 'foo', 'attrib': {'bar': 42},
Dtest_functools.py229 f.__setstate__((f, (), {}, {}))
233 f.__setstate__((capture, (), {}, {}))
236 f.__setstate__((capture, (f,), {}, {}))
240 f.__setstate__((capture, (), {}, {}))
243 f.__setstate__((capture, (), {'a': f}, {}))
247 f.__setstate__((capture, (), {}, {}))
279 f.__setstate__((capture, (1,), dict(a=10), dict(attr=[])))
285 f.__setstate__((capture, (1,), dict(a=10), None))
290 f.__setstate__((capture, (1,), None, None))
296 f.__setstate__((capture, (), {}, None))
[all …]
Dtest_itertools.py196 self.assertRaises(TypeError, chain().__setstate__, ())
197 self.assertRaises(TypeError, chain().__setstate__, [])
198 self.assertRaises(TypeError, chain().__setstate__, 0)
199 self.assertRaises(TypeError, chain().__setstate__, ([],))
200 self.assertRaises(TypeError, chain().__setstate__, (iter([]), []))
202 it.__setstate__((iter(['abc', 'def']),))
205 it.__setstate__((iter(['abc', 'def']), iter(['ghi'])))
680 c.__setstate__((list('abc'), 0))
688 c.__setstate__((list('abcdefg'), 1))
693 cycle('defg').__setstate__([list('abcdefg'), 0])
[all …]
Dtest_copy.py240 def __setstate__(self, state): member in TestCopy.test_copy_inst_setstate.C
253 def __setstate__(self, state): member in TestCopy.test_copy_inst_getstate_setstate.C
541 def __setstate__(self, state): member in TestCopy.test_deepcopy_inst_setstate.C
557 def __setstate__(self, state): member in TestCopy.test_deepcopy_inst_getstate_setstate.C
634 def __setstate__(self, state): member in TestCopy.test_reconstruct_state_setstate.C
/third_party/pyyaml/tests/lib/
Dtest_constructor.py107 def __setstate__(self, state): member in _make_objects.YAMLObject2
150 def __setstate__(self, state): member in _make_objects.AState
158 def __setstate__(self, state): member in _make_objects.ACustomState
172 def __setstate__(self, state): member in _make_objects.InitArgsWithState
186 def __setstate__(self, state): member in _make_objects.NewArgsWithState
196 def __setstate__(self, state): member in _make_objects.ReduceWithState
Dtest_recursive.py22 def __setstate__(self, state): member in AnInstanceWithState
/third_party/boost/libs/python/doc/reference/
Dpickle.qbk7 …e involves the special methods `__getinitargs__`, `__getstate__` and `__setstate__` as described i…
16__setstate__][When an instance of a `Boost.Python` extension class is restored by the unpickler (`…
19 …ckle_suite` class that also enforces consistency: `__getstate__` and `__setstate__` must be define…
46 …onstructors. Therefore it is necessary to provide the `__getstate__`/`__setstate__` pair of pickle…
104 To resolve this problem, it should first be established that the `__getstate__` and `__setstate__` …
123 def __setstate__(self, state):
/third_party/pyyaml/tests/lib3/
Dtest_constructor.py104 def __setstate__(self, state): member in _make_objects.YAMLObject2
147 def __setstate__(self, state): member in _make_objects.AState
155 def __setstate__(self, state): member in _make_objects.ACustomState
169 def __setstate__(self, state): member in _make_objects.NewArgsWithState
183 def __setstate__(self, state): member in _make_objects.ReduceWithState
Dtest_recursive.py22 def __setstate__(self, state): member in AnInstanceWithState
/third_party/python/Lib/multiprocessing/
Dsynchronize.py109 def __setstate__(self, state): member in SemLock
224 def __setstate__(self, state): member in Condition
367 self.__setstate__((parties, action, timeout, cond, wrapper))
371 def __setstate__(self, state): member in Barrier
Dqueues.py62 def __setstate__(self, state): member in Queue
305 def __setstate__(self, state): member in JoinableQueue
306 Queue.__setstate__(self, state[:-2])
360 def __setstate__(self, state): member in SimpleQueue
Dheap.py57 def __setstate__(self, state): member in Arena
/third_party/python/Lib/xml/dom/
Dminicompat.py68 def __setstate__(self, state): member in NodeList
/third_party/protobuf/python/google/protobuf/
Dmessage.py387 def __setstate__(self, state): member in Message
/third_party/python/Lib/ctypes/test/
Dtest_parameters.py195 BadStruct().__setstate__({}, b'foo')
202 WorseStruct().__setstate__({}, b'foo')
/third_party/pyyaml/examples/yaml-highlight/
Dyaml_hl.py29 def __setstate__(self, state): member in Style
/third_party/python/Doc/library/
Dpickle.rst549 conversions can be made by the class's :meth:`__setstate__` method.
621 .. method:: object.__setstate__(state)
623 Upon unpickling, if the class defines :meth:`__setstate__`, it is called with
630 If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
635 the methods :meth:`__getstate__` and :meth:`__setstate__`.
657 :meth:`__setstate__`) whenever possible. We will show, however, cases where
685 :meth:`__setstate__` method as previously described. If the object has no
706 :meth:`__setstate__` method. If not ``None``, this callable will have
707 priority over ``obj``'s :meth:`__setstate__`.
806 single: __setstate__() (copy protocol)
[all …]
/third_party/python/Lib/
Dcopy.py272 y.__setstate__(state)
Duuid.py232 def __setstate__(self, state): member in UUID
/third_party/pyyaml/lib3/yaml/
Dconstructor.py421 data.__setstate__(state)
597 instance.__setstate__(state)
/third_party/python/Lib/http/
Dcookies.py367 def __setstate__(self, state): member in Morsel
/third_party/pyyaml/lib/yaml/
Dconstructor.py450 data.__setstate__(state)
619 instance.__setstate__(state)
/third_party/node/tools/inspector_protocol/jinja2/
Dutils.py334 def __setstate__(self, d): member in LRUCache
/third_party/skia/third_party/externals/jinja2/
Dutils.py369 def __setstate__(self, d): member in LRUCache

12