Home
last modified time | relevance | path

Searched refs:getstate (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_multibytecodec.py129 initial_state = encoder.getstate()
135 partial_state = encoder.getstate()
145 en_state = encoder.getstate()
148 jp_state = encoder.getstate()
164 self.assertEqual(buffer_state_encoder.getstate(), 0)
166 self.assertEqual(buffer_state_encoder.getstate(),
173 self.assertEqual(buffer_state_encoder.getstate(), 0)
177 self.assertEqual(non_buffer_state_encoder.getstate(),
183 self.assertEqual(non_buffer_state_encoder.getstate(),
278 pending1, _ = decoder.getstate()
[all …]
Dtest_random.py27 state1 = self.gen.getstate()
30 state2 = self.gen.getstate()
36 state = self.gen.getstate()
456 self.assertRaises(NotImplementedError, self.gen.getstate)
660 start_state = self.gen.getstate()
683 state_values = self.gen.getstate()[1]
Dtest_descr.py340 self.assertEqual(a.getstate(), 0)
342 self.assertEqual(a.getstate(), 42)
390 self.assertEqual(a.getstate(), 0)
392 self.assertEqual(a.getstate(), 100)
432 def getstate(self): member in ClassPropertiesAndMethods.test_python_dicts.C
441 self.assertEqual(a.getstate(), -1)
444 self.assertEqual(a.getstate(), 0)
447 self.assertEqual(a.getstate(), 10)
479 def getstate(self): member in ClassPropertiesAndMethods.test_metaclass.C
484 self.assertEqual(a.getstate(), 0)
[all …]
Dtest_codecs.py79 state = d.getstate()
89 self.assertEqual(state, d.getstate())
101 state = d.getstate()
Dtest_io.py2484 def getstate(self): member in StatefulIncrementalDecoder
3506 def getstate(self): member in TextIOWrapperTest.test_illegal_decoder._make_very_illegal_wrapper.BadDecoder
3820 state = decoder.getstate()
/third_party/boost/libs/python/src/object/
Dpickle_support.cpp45 object getstate = getattr(instance_obj, "__getstate__", none); in instance_reduce() local
51 if (!getstate.is_none()) { in instance_reduce()
62 result.append(getstate()); in instance_reduce()
/third_party/python/Lib/encodings/
Dutf_8_sig.py43 def getstate(self): member in IncrementalEncoder
75 def getstate(self): member in IncrementalDecoder
76 state = codecs.BufferedIncrementalDecoder.getstate(self)
Dutf_32.py32 def getstate(self): member in IncrementalEncoder
70 def getstate(self): member in IncrementalDecoder
73 state = codecs.BufferedIncrementalDecoder.getstate(self)[0]
Dutf_16.py37 def getstate(self): member in IncrementalEncoder
75 def getstate(self): member in IncrementalDecoder
78 state = codecs.BufferedIncrementalDecoder.getstate(self)[0]
/third_party/python/Lib/
Drandom.py170 def getstate(self): member in Random
172 return self.VERSION, super().getstate(), self.gauss_next
208 return self.getstate()
214 return self.__class__, (), self.getstate()
847 getstate = setstate = _notimplemented variable in SystemRandom
877 getstate = _inst.getstate variable
Dcopyreg.py80 getstate = self.__getstate__
92 dict = getstate()
Dcodecs.py208 def getstate(self): member in IncrementalEncoder
248 def getstate(self): member in BufferedIncrementalEncoder
281 def getstate(self): member in IncrementalDecoder
331 def getstate(self): member in BufferedIncrementalDecoder
D_pyio.py1955 def getstate(self): member in IncrementalNewlineDecoder
1960 buf, flag = self.decoder.getstate()
2307 dec_buffer, dec_flags = self._decoder.getstate()
2374 saved_state = decoder.getstate()
2391 b, d = decoder.getstate()
2426 dec_buffer, dec_flags = decoder.getstate()
2697 old_state = decoder.getstate()
Ddatetime.py1172 getstate = getattr(self, "__getstate__", None)
1173 if getstate:
1174 state = getstate()
/third_party/boost/libs/python/test/
Dpickle2.cpp60 getstate(const world& w) in getstate() function
Dpickle3.cpp57 getstate(boost::python::object w_obj) in getstate() function
/third_party/boost/boost/python/object/
Dpickle_support.hpp40 static inaccessible* getstate() { return 0; } in getstate() function
/third_party/python/Doc/library/
Drandom.rst38 :meth:`~Random.seed`, :meth:`~Random.getstate`, and :meth:`~Random.setstate` methods.
94 .. function:: getstate()
102 *state* should have been obtained from a previous call to :func:`getstate`, and
104 the time :func:`getstate` was called.
392 The :meth:`getstate` and :meth:`setstate` methods raise
Dcodecs.rst572 .. method:: getstate()
584 returned by :meth:`getstate`.
631 .. method:: getstate()
649 returned by :meth:`getstate`.
/third_party/boost/boost/python/
Dclass.hpp344 &PickleSuiteType::getstate, in def_pickle()
/third_party/python/Modules/_io/
D_iomodule.c790 ADD_INTERNED(getstate) in PyInit__io()
/third_party/boost/libs/python/doc/reference/
Dpickle.qbk61 getstate(const world& w)
/third_party/python/Modules/
D_datetimemodule.c3734 PyObject *getinitargs, *getstate; in tzinfo_reduce() local
3752 if (_PyObject_LookupAttrId(self, &PyId___getstate__, &getstate) < 0) { in tzinfo_reduce()
3756 if (getstate != NULL) { in tzinfo_reduce()
3757 state = PyObject_CallNoArgs(getstate); in tzinfo_reduce()
3758 Py_DECREF(getstate); in tzinfo_reduce()
/third_party/python/Objects/
Dtypeobject.c4890 PyObject *getstate; in _PyObject_GetState() local
4893 if (_PyObject_LookupAttrId(obj, &PyId___getstate__, &getstate) < 0) { in _PyObject_GetState()
4896 if (getstate == NULL) { in _PyObject_GetState()
5018 state = _PyObject_CallNoArg(getstate); in _PyObject_GetState()
5019 Py_DECREF(getstate); in _PyObject_GetState()
/third_party/boost/libs/python/doc/
Darticle.rst714 getstate and setstate functions. C++'s static type system allows the
716 functions (e.g. getstate without setstate) are not used.

12