Home
last modified time | relevance | path

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

123

/third_party/python/Lib/asyncio/
Dexceptions.py43 def __reduce__(self): member in IncompleteReadError
57 def __reduce__(self): member in LimitOverrunError
/third_party/python/Lib/test/
Dtest_copy.py60 def __reduce__(self): member in TestCopy.test_copy_reduce_ex.C
70 def __reduce__(self): member in TestCopy.test_copy_reduce.C
322 def __reduce__(self): member in TestCopy.test_deepcopy_reduce_ex.C
332 def __reduce__(self): member in TestCopy.test_deepcopy_reduce.C
587 def __reduce__(self): member in TestCopy.test_reconstruct_string.C
597 def __reduce__(self): member in TestCopy.test_reconstruct_nostate.C
608 def __reduce__(self): member in TestCopy.test_reconstruct_state.C
622 def __reduce__(self): member in TestCopy.test_reconstruct_state_setstate.C
649 def __reduce__(self): member in TestCopy.test_reduce_4tuple.C
666 def __reduce__(self): member in TestCopy.test_reduce_5tuple.C
Dtest_concurrent_futures.py1087 def __reduce__(self): member in CrashAtPickle
1093 def __reduce__(self): member in CrashAtUnpickle
1099 def __reduce__(self): member in ExitAtPickle
1105 def __reduce__(self): member in ExitAtUnpickle
1111 def __reduce__(self): member in ErrorAtPickle
1118 def __reduce__(self): member in ErrorAtUnpickle
Dpickletester.py154 def __reduce__(self): member in K
190 def __reduce__(self): member in pickling_metaclass
1935 copyreg.pickle(pickling_metaclass, pickling_metaclass.__reduce__)
2393 def __reduce__(self): member in AbstractPickleTests.test_reduce_bad_iterator.C
2397 def __reduce__(self): member in AbstractPickleTests.test_reduce_bad_iterator.D
3168 def __reduce__(self): member in REX_one
3184 def __reduce__(self): member in REX_three
3197 def __reduce__(self): member in REX_five
3199 return object.__reduce__(self)
3211 def __reduce__(self): member in REX_six
[all …]
Dtest_structseq.py111 x = t.__reduce__()
Dtest_ordered_dict.py319 self.assertTrue(all(type(pair)==list for pair in od.__reduce__()[1]))
327 self.assertIsNone(od.__reduce__()[2])
330 self.assertEqual(od.__reduce__()[2], {'x': 10})
/third_party/python/Lib/
Doperator.py262 def __reduce__(self): member in attrgetter
293 def __reduce__(self): member in itemgetter
323 def __reduce__(self): member in methodcaller
Dtyping.py382 def __reduce__(self): member in _SpecialForm
746 def __reduce__(self): member in _TypeVarLike
1080 def __reduce__(self): member in _GenericAlias
1144 def __reduce__(self): member in _SpecialGenericAlias
1163 def __reduce__(self): member in _CallableGenericAlias
1250 def __reduce__(self): member in _UnionGenericAlias
1251 func, (origin, args) = super().__reduce__()
1617 def __reduce__(self): member in _AnnotatedAlias
2464 def __reduce__(self): member in NewType
Dipaddress.py560 def __reduce__(self): member in _IPAddressBase
621 def __reduce__(self): member in _BaseAddress
1431 __reduce__ = _IPAddressBase.__reduce__ variable in IPv4Interface
2135 __reduce__ = _IPAddressBase.__reduce__ variable in IPv6Interface
D_weakrefset.py82 def __reduce__(self): member in WeakSet
Ddatetime.py754 def __reduce__(self): member in timedelta
1104 def __reduce__(self): member in date
1166 def __reduce__(self): member in tzinfo
1200 def __reduce__(self): member in IsoCalendarDate
1553 def __reduce__(self): member in time
2164 def __reduce__(self): member in datetime
/third_party/protobuf/python/google/protobuf/
Dmessage.py397 def __reduce__(self): member in Message
/third_party/jinja2/
Dexceptions.py131 def __reduce__(self): # type: ignore member in TemplateSyntaxError
/third_party/skia/third_party/externals/jinja2/
Dexceptions.py142 def __reduce__(self): member in TemplateSyntaxError
/third_party/PyYAML/tests/lib/
Dtest_constructor.py180 def __reduce__(self): member in _make_objects.Reduce
184 def __reduce__(self): member in _make_objects.ReduceWithState
/third_party/python/Lib/multiprocessing/
Dshared_memory.py188 def __reduce__(self): member in SharedMemory
472 def __reduce__(self): member in ShareableList
Dsharedctypes.py198 def __reduce__(self): member in SynchronizedBase
Dprocess.py344 def __reduce__(self): member in AuthenticationString
Dutil.py388 def __reduce__(self): member in ForkAwareLocal
Dpool.py69 def __reduce__(self): member in ExceptionWithTraceback
639 def __reduce__(self): member in Pool
/third_party/python/Lib/lib2to3/pgen2/
Dparse.py27 def __reduce__(self): member in ParseError
/third_party/python/Doc/library/
Dpickle.rst355 conform to the same interface as a :meth:`__reduce__`
375 should conform to the same interface as a :meth:`__reduce__` method, and
650 :meth:`__reduce__` special method. The copy protocol provides a unified
654 Although powerful, implementing :meth:`__reduce__` directly in your classes is
658 using :meth:`__reduce__` is the only option or leads to more efficient pickling
661 .. method:: object.__reduce__()
663 The interface is currently defined as follows. The :meth:`__reduce__` method
717 version. When defined, pickle will prefer it over the :meth:`__reduce__`
718 method. In addition, :meth:`__reduce__` automatically becomes a synonym for
879 arbitrary reduction tuple (see :meth:`__reduce__`). It can alternatively return
/third_party/python/Lib/zoneinfo/
D_zoneinfo.py86 obj.__reduce__ = obj._file_reduce
205 def __reduce__(self): member in ZoneInfo
/third_party/python/Lib/json/
Ddecoder.py42 def __reduce__(self): member in JSONDecodeError
/third_party/python/Misc/NEWS.d/
D3.6.0b4.rst116 Restored the __reduce__() methods of datetime objects.

123