Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/
Dtest_complex.py527 self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0))
528 self.assertEqual((1-2j).__getnewargs__(), (1.0, -2.0))
529 self.assertEqual((2j).__getnewargs__(), (0.0, 2.0))
530 self.assertEqual((-0j).__getnewargs__(), (0.0, -0.0))
531 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
532 self.assertEqual(complex(INF, 0).__getnewargs__(), (INF, 0.0))
Dtest_collections.py259 self.assertEqual(t.__getnewargs__(), values)
Dpickletester.py1690 def __getnewargs__(self): member in ComplexNewObj
Dtest_descr.py3399 def __getnewargs__(self): member in ClassPropertiesAndMethods.test_pickles.C1
3411 def __getnewargs__(self): member in ClassPropertiesAndMethods.test_pickles.C2
/external/python/cpython3/Lib/test/
Dtest_complex.py503 self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0))
504 self.assertEqual((1-2j).__getnewargs__(), (1.0, -2.0))
505 self.assertEqual((2j).__getnewargs__(), (0.0, 2.0))
506 self.assertEqual((-0j).__getnewargs__(), (0.0, -0.0))
507 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
508 self.assertEqual(complex(INF, 0).__getnewargs__(), (INF, 0.0))
Dtest_copy.py197 def __getnewargs__(self): member in TestCopy.test_copy_inst_getnewargs.C
493 def __getnewargs__(self): member in TestCopy.test_deepcopy_inst_getnewargs.C
Dtest_descr.py4876 def __getnewargs__(self): member in PicklingTests.test_reduce.C1
4888 def __getnewargs__(self): member in PicklingTests.test_reduce.C2
5154 def __getnewargs__(cls): member in PicklingTests.test_reduce_copying.C2
5191 def __getnewargs__(cls): member in PicklingTests.test_reduce_copying.C4
Dtest_collections.py503 self.assertEqual(t.__getnewargs__(), values)
Dtest_unicode.py2343 args = text.__getnewargs__()
/external/python/cpython3/Lib/collections/
D__init__.py430 def __getnewargs__(self): function
437 __repr__, _asdict, __getnewargs__):
452 '__getnewargs__': __getnewargs__,
1149 def __getnewargs__(self): member in UserString
/external/llvm/utils/lit/lit/
DTest.py18 def __getnewargs__(self): member in ResultCode
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/lit/
DTest.py20 def __getnewargs__(self): member in ResultCode
/external/libchrome/third_party/jinja2/
Dutils.py338 def __getnewargs__(self): member in LRUCache
/external/python/cpython2/Doc/library/
Dpickle.rst427 .. method:: object.__getnewargs__()
429 New-style types can provide a :meth:`__getnewargs__` method that is used for
438 where *args* is the result of calling :meth:`__getnewargs__` on the original
439 object; if there is no :meth:`__getnewargs__`, an empty tuple is assumed.
469 :meth:`__getnewargs__` to establish such an invariant; otherwise, neither
Dcollections.rst641 def __getnewargs__(self):
/external/python/cpython3/Doc/library/
Dpickle.rst513 compatibility to implement :meth:`__getnewargs__`.
519 .. method:: object.__getnewargs__()
525 :meth:`__getnewargs__` will not be called if :meth:`__getnewargs_ex__` is
529 Before Python 3.6, :meth:`__getnewargs__` was called instead of
563 true, the type should implement :meth:`__getnewargs__` or
Denum.rst988 class are correct (such as :meth:`__new__`, :meth:`__getnewargs__`,
Dunittest.mock.rst1713 ``__getnewargs__``, ``__getstate__`` and ``__setstate__``
1840 * ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``,
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b1.rst204 collections.UserString now supports __getnewargs__(), __rmod__(),
D3.5.2rc1.rst254 __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no
/external/python/cpython2/Misc/NEWS.d/
D2.7.12rc1.rst163 __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no
/external/autotest/site_utils/rpm_control_system/
DBeautifulSoup.py463 def __getnewargs__(self): member in NavigableString
/external/python/cpython3/Lib/email/
D_header_value_parser.py887 def __getnewargs__(self): member in Terminal
/external/python/cpython2/Lib/lib-tk/
Dturtle.py294 def __getnewargs__(self): member in Vec2D
/external/python/cpython3/Lib/
Dturtle.py274 def __getnewargs__(self): member in Vec2D

12