/third_party/python/Lib/test/ |
D | test_memoryio.py | 741 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 …]
|
D | test_xml_etree_c.py | 115 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},
|
D | test_functools.py | 229 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 …]
|
D | test_itertools.py | 196 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 …]
|
D | test_copy.py | 240 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/ |
D | test_constructor.py | 107 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
|
D | test_recursive.py | 22 def __setstate__(self, state): member in AnInstanceWithState
|
/third_party/boost/libs/python/doc/reference/ |
D | pickle.qbk | 7 …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/ |
D | test_constructor.py | 104 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
|
D | test_recursive.py | 22 def __setstate__(self, state): member in AnInstanceWithState
|
/third_party/python/Lib/multiprocessing/ |
D | synchronize.py | 109 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
|
D | queues.py | 62 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
|
D | heap.py | 57 def __setstate__(self, state): member in Arena
|
/third_party/python/Lib/xml/dom/ |
D | minicompat.py | 68 def __setstate__(self, state): member in NodeList
|
/third_party/protobuf/python/google/protobuf/ |
D | message.py | 387 def __setstate__(self, state): member in Message
|
/third_party/python/Lib/ctypes/test/ |
D | test_parameters.py | 195 BadStruct().__setstate__({}, b'foo') 202 WorseStruct().__setstate__({}, b'foo')
|
/third_party/pyyaml/examples/yaml-highlight/ |
D | yaml_hl.py | 29 def __setstate__(self, state): member in Style
|
/third_party/python/Doc/library/ |
D | pickle.rst | 549 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/ |
D | copy.py | 272 y.__setstate__(state)
|
D | uuid.py | 232 def __setstate__(self, state): member in UUID
|
/third_party/pyyaml/lib3/yaml/ |
D | constructor.py | 421 data.__setstate__(state) 597 instance.__setstate__(state)
|
/third_party/python/Lib/http/ |
D | cookies.py | 367 def __setstate__(self, state): member in Morsel
|
/third_party/pyyaml/lib/yaml/ |
D | constructor.py | 450 data.__setstate__(state) 619 instance.__setstate__(state)
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | utils.py | 334 def __setstate__(self, d): member in LRUCache
|
/third_party/skia/third_party/externals/jinja2/ |
D | utils.py | 369 def __setstate__(self, d): member in LRUCache
|