Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/
Dtest_complex.py498 self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0))
499 self.assertEqual((1-2j).__getnewargs__(), (1.0, -2.0))
500 self.assertEqual((2j).__getnewargs__(), (0.0, 2.0))
501 self.assertEqual((-0j).__getnewargs__(), (0.0, -0.0))
502 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
503 self.assertEqual(complex(INF, 0).__getnewargs__(), (INF, 0.0))
Dtest_collections.py259 self.assertEqual(t.__getnewargs__(), values)
Dpickletester.py1647 def __getnewargs__(self): member in ComplexNewObj
Dtest_descr.py3267 def __getnewargs__(self): member in ClassPropertiesAndMethods.test_pickles.C1
3279 def __getnewargs__(self): member in ClassPropertiesAndMethods.test_pickles.C2
/external/python/cpython3/Lib/test/
Dtest_complex.py499 self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0))
500 self.assertEqual((1-2j).__getnewargs__(), (1.0, -2.0))
501 self.assertEqual((2j).__getnewargs__(), (0.0, 2.0))
502 self.assertEqual((-0j).__getnewargs__(), (0.0, -0.0))
503 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
504 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.py4806 def __getnewargs__(self): member in PicklingTests.test_reduce.C1
4818 def __getnewargs__(self): member in PicklingTests.test_reduce.C2
5084 def __getnewargs__(cls): member in PicklingTests.test_reduce_copying.C2
5121 def __getnewargs__(cls): member in PicklingTests.test_reduce_copying.C4
Dpickletester.py2518 def __getnewargs__(self): member in ComplexNewObj
Dtest_collections.py398 self.assertEqual(t.__getnewargs__(), values)
Dtest_unicode.py2332 args = text.__getnewargs__()
Dtest_enum.py1056 def __getnewargs__(self): member in TestEnum.test_subclasses_with_getnewargs.NamedInt
/external/llvm/utils/lit/lit/
DTest.py18 def __getnewargs__(self): member in ResultCode
/external/libmojo/third_party/jinja2/
Dutils.py326 def __getnewargs__(self): member in LRUCache
/external/python/cpython3/Doc/library/
Dpickle.rst505 compatibility to implement :meth:`__getnewargs__`.
511 .. method:: object.__getnewargs__()
517 :meth:`__getnewargs__` will not be called if :meth:`__getnewargs_ex__` is
521 Before Python 3.6, :meth:`__getnewargs__` was called instead of
555 true, the type should implement :meth:`__getnewargs__` or
Denum.rst961 class are correct (such as :meth:`__new__`, :meth:`__getnewargs__`,
Dunittest.mock.rst1679 ``__getnewargs__``, ``__getstate__`` and ``__setstate__``
1806 * ``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``,
Dcollections.rst1179 New methods ``__getnewargs__``, ``__rmod__``, ``casefold``,
/external/python/cpython2/Doc/library/
Dpickle.rst426 .. method:: object.__getnewargs__()
428 New-style types can provide a :meth:`__getnewargs__` method that is used for
437 where *args* is the result of calling :meth:`__getnewargs__` on the original
438 object; if there is no :meth:`__getnewargs__`, an empty tuple is assumed.
468 :meth:`__getnewargs__` to establish such an invariant; otherwise, neither
Dcollections.rst637 def __getnewargs__(self):
/external/python/cpython3/Lib/collections/
D__init__.py1117 def __getnewargs__(self): member in UserString
/external/autotest/site_utils/rpm_control_system/
DBeautifulSoup.py463 def __getnewargs__(self): member in NavigableString
/external/python/cpython3/Lib/email/
D_header_value_parser.py1282 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
/external/python/cpython3/Objects/
Dtypeobject.c4049 _Py_IDENTIFIER(__getnewargs__); in _PyObject_GetNewArguments()

12