Home
last modified time | relevance | path

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

1234

/external/python/cpython2/Lib/test/
Dtest_class.py96 def __int__(self, *args): member in AllTests
496 def __int__(self): member in ClassTests.testBadTypeReturned.BadTypeClass
498 __float__ = __int__
499 __long__ = __int__
500 __str__ = __int__
501 __repr__ = __int__
502 __oct__ = __int__
503 __hex__ = __int__
512 def __int__(self): member in ClassTests.testMixIntsAndLongs.IntLongMixClass
Dtest_int.py413 def __int__(self): member in IntTestCases.test_intconversion.Foo0
417 def __int__(self): member in IntTestCases.test_intconversion.Foo1
421 def __int__(self): member in IntTestCases.test_intconversion.Foo2
425 def __int__(self): member in IntTestCases.test_intconversion.Foo3
429 def __int__(self): member in IntTestCases.test_intconversion.Foo4
433 def __int__(self): member in IntTestCases.test_intconversion.Foo5
447 def __int__(self): member in IntTestCases.test_intconversion.IntOverridesTrunc
460 def __int__(self): member in IntTestCases.test_intconversion.Integral
Dtest_struct.py281 def __int__(self): member in StructTest.test_integers.IntTester.run.NotAnIntNS
288 def __int__(self): member in StructTest.test_integers.IntTester.run.NotAnIntOS
310 def __int__(self): member in StructTest.test_integers.IntTester.run.BadIndex
Dtest_cmath.py170 def __int__(self): return 2 member in CMathTests.test_user_object.MyInt
174 def __int__(self): return 2 member in CMathTests.test_user_object.MyIntOS
/external/python/cpython3/Lib/test/
Dtest_class.py463 def __int__(self): member in ClassTests.testBadTypeReturned.BadTypeClass
465 __float__ = __int__
466 __complex__ = __int__
467 __str__ = __int__
468 __repr__ = __int__
469 __bytes__ = __int__
470 __bool__ = __int__
471 __index__ = __int__
Dtest_int.py354 def __int__(self): member in IntTestCases.test_intconversion.Foo0
363 def __int__(self): member in IntTestCases.test_intconversion.IntOverridesTrunc
382 def __int__(self): member in IntTestCases.test_intconversion.Integral
410 def __int__(self): member in IntTestCases.test_intconversion.BadInt
422 def __int__(self): member in IntTestCases.test_int_subclass_with_int.MyInt
426 def __int__(self): member in IntTestCases.test_int_subclass_with_int.BadInt
437 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt
441 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt2
Dtest_getargs2.py57 def __int__(self): member in Int
61 def __int__(self): member in IntSubclass
65 def __int__(self): member in BadInt
69 def __int__(self): member in BadInt2
73 def __int__(self): member in BadInt3
Dtest_cmath.py224 def __int__(self): return 2 member in CMathTests.test_user_object.MyInt
227 def __int__(self): return 2 member in CMathTests.test_user_object.MyIntOS
/external/libnl/python/netlink/
Dutil.py158 def __int__(self): member in Rate
171 def __int__(self): member in Size
/external/python/cpython3/Doc/c-api/
Dlong.rst134 instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method
146 instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method
163 instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method
175 instance of :c:type:`PyLongObject`, first call its :meth:`__int__` method
256 is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__`
268 is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__`
/external/grpc-grpc/src/python/grpcio/grpc/experimental/
Dsession_cache.py44 def __int__(self): member in SSLSessionCache
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_channel_args_test.py24 def __int__(self): member in TestPointerWrapper
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Darguments.pyx.pxi72 elif hasattr(value, '__int__'):
73 # Pointer objects must override __int__() to return
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py308 mock.__int__ = Mock(return_value=iter([]))
333 mock.__int__ = Mock(return_value=iter([]))
406 self.assertIsInstance(foo.__int__, Foo)
Dtestmock.py1034 call.foo.bar().baz().__int__().call_list())
1036 call.baz().__int__().call_list())
1038 call().__int__().call_list())
1545 mock.__int__.return_value =4
1610 m.__int__ = Mock(return_value=3)
1615 self.assertEqual(m.mock_calls, [call.__int__(), call.__float__()])
/external/python/cpython2/Demo/metaclasses/
DEnum.py106 def __int__(self): member in EnumInstance
/external/python/mock/mock/tests/
Dtestmagicmethods.py371 mock.__int__ = Mock(return_value=iter([]))
396 mock.__int__ = Mock(return_value=iter([]))
468 self.assertIsInstance(foo.__int__, Foo)
Dtestmock.py946 call.foo.bar().baz().__int__().call_list())
948 call.baz().__int__().call_list())
950 call().__int__().call_list())
1390 mock.__int__.return_value =4
1455 m.__int__ = Mock(return_value=3)
1460 self.assertEqual(m.mock_calls, [call.__int__(), call.__float__()])
/external/toolchain-utils/deprecated/
Dsummarize_results.py23 def __int__(self): member in DejaGNUSummarizer
/external/python/cpython3/Lib/
Dnumbers.py300 def __int__(self): member in Integral
/external/libchrome/third_party/markupsafe/
D__init__.py221 __int__ = lambda s: int(s.obj) member in _MarkupEscapeHelper
/external/python/cpython2/Misc/NEWS.d/
D2.7b1.rst600 goes on to try the __int__ method, as described below.
611 __int__ method to convert to an integer before packing. It also produces a
613 inconsistent: __int__ was used for some integer codes but not for others,
/external/python/cpython2/Doc/library/
Dstruct.rst227 :exc:`TypeError`, then the :meth:`__int__` method is tried. However, the use
228 of :meth:`__int__` is deprecated, and will raise :exc:`DeprecationWarning`.
235 :meth:`__int__` method to convert, and :exc:`DeprecationWarning` was
/external/python/cpython2/Demo/classes/
DComplex.py145 def __int__(self): member in Complex
/external/python/cpython2/Lib/ctypes/test/
Dtest_numbers.py125 def __int__(self): member in NumberTestCase.test_integers.IntLike

1234