Home
last modified time | relevance | path

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

123

/third_party/python/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
391 def __int__(self): member in IntTestCases.test_intconversion.Intable
419 def __int__(self): member in IntTestCases.test_intconversion.BadInt
446 def __int__(self): member in IntTestCases.test_int_subclass_with_int.MyInt
450 def __int__(self): member in IntTestCases.test_int_subclass_with_int.BadInt
471 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt
475 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt2
Dtest_getargs2.py80 def __int__(self): member in Int
84 def __int__(self): member in IntSubclass
88 def __int__(self): member in BadInt
92 def __int__(self): member in BadInt2
96 def __int__(self): member in BadInt3
Dtest_cmath.py224 def __int__(self): return 2 member in CMathTests.test_user_object.Index
227 def __int__(self): return 2 member in CMathTests.test_user_object.MyInt
Dtest_struct.py264 def __int__(self): member in StructTest.test_integers.IntTester.run.NotAnInt
283 def __int__(self): member in StructTest.test_integers.IntTester.run.BadIndex
Dtest_binop.py71 def __int__(self): member in Rat
/third_party/libnl/python/netlink/
Dutil.py158 def __int__(self): member in Rate
171 def __int__(self): member in Size
/third_party/grpc/src/python/grpcio/grpc/experimental/
Dsession_cache.py44 def __int__(self): member in SSLSessionCache
/third_party/python/Doc/c-api/
Dlong.rst131 This function will no longer use :meth:`__int__`.
151 This function will no longer use :meth:`__int__`.
172 This function will no longer use :meth:`__int__`.
194 This function will no longer use :meth:`__int__`.
278 This function will no longer use :meth:`__int__`.
298 This function will no longer use :meth:`__int__`.
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_channel_args_test.py25 def __int__(self): member in TestPointerWrapper
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Darguments.pyx.pxi51 elif hasattr(value, '__int__'):
52 # Pointer objects must override __int__() to return
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py351 mock.__int__ = Mock(return_value=iter([]))
375 mock.__int__ = Mock(return_value=iter([]))
447 self.assertIsInstance(foo.__int__, Foo)
Dtestmock.py1156 call.foo.bar().baz().__int__().call_list())
1158 call.baz().__int__().call_list())
1160 call().__int__().call_list())
1807 mock.__int__.return_value =4
1873 m.__int__ = Mock(return_value=3)
1878 self.assertEqual(m.mock_calls, [call.__int__(), call.__float__()])
Dtesthelpers.py331 kall = call(1).method(2)(3).foo.bar.baz(4)(5).__int__()
431 self.assertEqual(m.__int__.call_count, 0)
/third_party/grpc/src/python/grpcio_tests/tests_aio/unit/
Dchannel_argument_test.py51 def __int__(self): member in _TestPointerWrapper
/third_party/python/Lib/
Dnumbers.py304 def __int__(self): member in Integral
Duuid.py270 def __int__(self): member in UUID
/third_party/node/tools/inspector_protocol/markupsafe/
D__init__.py221 __int__ = lambda s: int(s.obj) member in _MarkupEscapeHelper
/third_party/skia/third_party/externals/markupsafe/
D__init__.py221 __int__ = lambda s: int(s.obj) member in _MarkupEscapeHelper
/third_party/markupsafe/
D__init__.py271 def __int__(self) -> int: member in _MarkupEscapeHelper
/third_party/python/Lib/ctypes/test/
Dtest_numbers.py125 def __int__(self): member in NumberTestCase.test_integers.IntLike
/third_party/littlefs/scripts/
Dreadmdir.py149 def __int__(self): member in Tag
/third_party/libnl/python/netlink/route/
Dtc.py75 def __int__(self): member in Handle
/third_party/python/Misc/NEWS.d/
D3.8.0a3.rst233 :meth:`~object.__int__` for implicit conversion of Python numbers to C
234 integers. Using the ``__int__()`` method in implicit conversions has been
/third_party/node/tools/inspector_protocol/jinja2/
Druntime.py646 __getitem__ = __lt__ = __le__ = __gt__ = __ge__ = __int__ = \

123