Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Denum.py47 cls.__reduce_ex__ = _break_on_call_reduce
582 def __reduce_ex__(self, proto): member in Enum
633 cls.__reduce_ex__ = _reduce_ex_by_name
Ddatetime.py1348 def __reduce_ex__(self, protocol): member in time
1352 return self.__reduce_ex__(2)
1926 def __reduce_ex__(self, protocol): member in datetime
1930 return self.__reduce_ex__(2)
/external/python/cpython2/Doc/library/
Dpickle.rst532 .. method:: object.__reduce_ex__(protocol)
536 :meth:`__reduce_ex__` instead of :meth:`__reduce__`. :meth:`__reduce_ex__`,
539 :meth:`__reduce_ex__` method will be called with a single integer argument,
543 :meth:`__reduce_ex__`; however, if a subclass overrides :meth:`__reduce__`
544 but not :meth:`__reduce_ex__`, the :meth:`__reduce_ex__` implementation
/external/python/cpython2/Lib/test/
Dpickletester.py1538 def __reduce_ex__(self, proto): member in REX_two
1545 def __reduce_ex__(self, proto): member in REX_three
1553 def __reduce_ex__(self, proto): member in REX_four
1555 return object.__reduce_ex__(self, proto)
Dtest_copy.py51 def __reduce_ex__(self, proto): member in TestCopy.test_copy_reduce_ex.C
270 def __reduce_ex__(self, proto): member in TestCopy.test_deepcopy_reduce_ex.C
Dtest_multiprocessing.py155 __reduce_ex__ = __reduce__ variable in BaseTestCase
/external/python/cpython3/Lib/test/
Dtest_copy.py56 def __reduce_ex__(self, proto): member in TestCopy.test_copy_reduce_ex.C
318 def __reduce_ex__(self, proto): member in TestCopy.test_deepcopy_reduce_ex.C
Dpickletester.py2416 def __reduce_ex__(self, proto): member in REX_two
2422 def __reduce_ex__(self, proto): member in REX_three
2431 def __reduce_ex__(self, proto): member in REX_four
2433 return object.__reduce_ex__(self, proto)
Dtest_descr.py4772 reduce_value = obj.__reduce_ex__(proto)
4796 self.assertEqual(obj.__reduce_ex__(proto), reduce_value)
4824 obj.__reduce_ex__(proto)
4851 obj.__reduce_ex__(proto)
4867 obj.__reduce_ex__(proto)
4889 obj.__reduce_ex__(proto)
4906 obj.__reduce_ex__(proto)
Dtest_enum.py642 ReplaceGlobalInt.__reduce_ex__ = enum._reduce_ex_by_name
644 self.assertEqual(ReplaceGlobalInt.TWO.__reduce_ex__(proto), 'TWO')
1227 def __reduce_ex__(self, proto): member in TestEnum.test_subclasses_with_reduce_ex.NamedInt
1367 def __reduce_ex__(self, proto): member in TestEnum.test_subclasses_without_direct_pickle_support_using_name.NEI
Ddatetimetester.py1332 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
1834 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
2515 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
2876 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
2888 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
3092 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
3105 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
Dtest_array.py260 self.assertIs(a.__reduce_ex__(protocol)[0], array.array)
262 self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor)
D_test_multiprocessing.py171 __reduce_ex__ = __reduce__ variable in BaseTestCase
/external/python/cpython3/Doc/library/
Dpickle.rst617 .. method:: object.__reduce_ex__(protocol)
619 Alternatively, a :meth:`__reduce_ex__` method may be defined. The only
Denum.rst439 :meth:`__reduce_ex__` in the enumeration class.
Dunittest.mock.rst1678 * Pickling: ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``,
1806 * ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``,
/external/python/cpython2/Doc/faq/
Dgeneral.rst424 '__reduce_ex__', '__repr__', '__reversed__', '__rmul__',
/external/python/cpython3/Doc/faq/
Dgeneral.rst423 '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
/external/scapy/scapy/
Dpacket.py91 def __reduce_ex__(self, proto): member in Packet
/external/python/cpython2/Modules/
DcPickle.c5908 INIT_STR(__reduce_ex__); in init_stuff()
/external/python/cpython3/Modules/
D_pickle.c3903 _Py_IDENTIFIER(__reduce_ex__); in save()
/external/python/cpython3/Misc/
DNEWS2371 methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
2411 - Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now
4302 methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
4982 - Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now
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
/external/python/cpython2/Misc/
DNEWS441 methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
800 - Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now
10719 ``object.__reduce_ex__()`` is called with an object that is faking
DHISTORY3214 - Fixed a bug in object.__reduce_ex__ when using protocol 2. Failure