Home
last modified time | relevance | path

Searched refs:__reduce_ex__ (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Lib/
Denum.py64 cls.__reduce_ex__ = _break_on_call_reduce
564 cls.__reduce_ex__ = _reduce_ex_by_name
786 def __reduce_ex__(self, proto): member in Enum
Ddatetime.py1550 def __reduce_ex__(self, protocol): member in time
1554 return self.__reduce_ex__(2)
2161 def __reduce_ex__(self, protocol): member in datetime
2165 return self.__reduce_ex__(2)
/third_party/python/Lib/test/
Daudit-tests.py140 def __reduce_ex__(self, p): member in test_pickle.PicklePrint
Dtest_descr.py5056 reduce_value = obj.__reduce_ex__(proto)
5080 self.assertEqual(obj.__reduce_ex__(proto), reduce_value)
5108 obj.__reduce_ex__(proto)
5135 obj.__reduce_ex__(proto)
5151 obj.__reduce_ex__(proto)
5173 obj.__reduce_ex__(proto)
5190 obj.__reduce_ex__(proto)
5477 self.assertEqual(A().__reduce_ex__(2), expected) # Shouldn't crash
5486 object().__reduce_ex__(0)
5488 object().__reduce_ex__()
[all …]
Dpickletester.py205 def __reduce_ex__(self, protocol): member in ZeroCopyBytes
233 def __reduce_ex__(self, protocol): member in ZeroCopyBytearray
303 def __reduce_ex__(self, protocol): member in PicklableNDArray
3175 def __reduce_ex__(self, proto): member in REX_two
3181 def __reduce_ex__(self, proto): member in REX_three
3190 def __reduce_ex__(self, proto): member in REX_four
3192 return object.__reduce_ex__(self, proto)
Dtest_copy.py57 def __reduce_ex__(self, proto): member in TestCopy.test_copy_reduce_ex.C
319 def __reduce_ex__(self, proto): member in TestCopy.test_deepcopy_reduce_ex.C
Dtest_enum.py834 ReplaceGlobalInt.__reduce_ex__ = enum._reduce_ex_by_name
836 self.assertEqual(ReplaceGlobalInt.TWO.__reduce_ex__(proto), 'TWO')
1423 def __reduce_ex__(self, proto): member in TestEnum.test_subclasses_with_reduce_ex.NamedInt
1563 def __reduce_ex__(self, proto): member in TestEnum.test_subclasses_without_direct_pickle_support_using_name.NEI
Ddatetimetester.py1580 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
2294 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
3354 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
3745 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
3757 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
4126 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
4139 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
Dtest_array.py269 self.assertIs(a.__reduce_ex__(protocol)[0], array.array)
271 self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor)
D_test_multiprocessing.py204 __reduce_ex__ = __reduce__ variable in BaseTestCase
/third_party/PyYAML/lib/yaml/
Drepresenter.py317 reduce = data.__reduce_ex__(2)
/third_party/python/Doc/library/
Dpickle.rst713 .. method:: object.__reduce_ex__(protocol)
715 Alternatively, a :meth:`__reduce_ex__` method may be defined. The only
947 The large data objects to be pickled must implement a :meth:`__reduce_ex__`
992 def __reduce_ex__(self, protocol):
Denum.rst458 :meth:`__reduce_ex__` in the enumeration class.
Dunittest.mock.rst2029 * Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``,
2166 * ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``,
/third_party/python/Doc/faq/
Dgeneral.rst416 '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
/third_party/python/Misc/NEWS.d/
D3.5.1rc1.rst48 Default implementation of __reduce__ and __reduce_ex__ now rejects builtin
D3.6.0a1.rst459 __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no
588 Default implementation of __reduce__ and __reduce_ex__ now rejects builtin
D3.5.2rc1.rst254 __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no
D3.7.0a1.rst561 Fixed default implementations of __reduce__ and __reduce_ex__().
562 object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
D3.10.0a1.rst1233 `__repr__`, `__format__`, and `__reduce_ex__`).
/third_party/python/Modules/
D_pickle.c4413 _Py_IDENTIFIER(__reduce_ex__); in save()
/third_party/python/Misc/
DHISTORY158 - Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now
3080 object.__reduce__() and object.__reduce_ex__().
20598 - Fixed a bug in object.__reduce_ex__ when using protocol 2. Failure