Home
last modified time | relevance | path

Searched refs:__int__ (Results 1 - 25 of 51) sorted by relevance

123

/third_party/python/Lib/test/
H A Dtest_class.py86 def __int__(self, *args):
358 self.assertCallStack([('__int__', (testme,))])
463 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__
[all...]
H A Dtest_int.py365 # Test __int__()
375 def __int__(self): member in IntTestCases.test_intconversion.Foo0
384 def __int__(self): member in IntTestCases.test_intconversion.Classic.IntOverridesTrunc
415 def __int__(self): member in IntTestCases.test_intconversion.Classic.ExceptionalTrunc.Intable
445 def __int__(self): member in IntTestCases.test_intconversion.Classic.ExceptionalTrunc.BadInt
473 def __int__(self): member in IntTestCases.test_int_subclass_with_int.MyInt
477 def __int__(self): member in IntTestCases.test_int_subclass_with_int.BadInt
498 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt
502 def __int__(self): member in IntTestCases.test_int_returns_int_subclass.BadInt2
H A 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
260 # __int__ or __index__. An old-style class
H A Dtest_binop.py71 def __int__(self): member in Rat
H A Dtest_struct.py267 def __int__(self): member in StructTest.test_integers.IntTester.run.NotAnInt
281 # '__int__' should be used with a deprecation warning.
286 def __int__(self): member in StructTest.test_integers.IntTester.run.BadIndex
/third_party/python/Lib/unittest/test/testmock/
H A Dtestmagicmethods.py351 mock.__int__ = Mock(return_value=iter([]))
375 mock.__int__ = Mock(return_value=iter([]))
447 self.assertIsInstance(foo.__int__, Foo)
H A Dtestmock.py1135 expected = [('foo.__int__', (), {})]
1161 last_call = ('().foo.bar().baz().__int__', (), {})
1164 call.foo.bar().baz().__int__().call_list())
1166 call.baz().__int__().call_list())
1168 call().__int__().call_list())
1831 mock.__int__.return_value =4
1897 m.__int__ = Mock(return_value=3)
1902 self.assertEqual(m.mock_calls, [call.__int__(), call.__float__()])
H A Dtesthelpers.py331 kall = call(1).method(2)(3).foo.bar.baz(4)(5).__int__()
431 self.assertEqual(m.__int__.call_count, 0)
/third_party/python/Lib/
H A Dnumbers.py304 def __int__(self): member in Integral
H A Duuid.py271 def __int__(self): member in UUID
H A Dfractions.py597 def __int__(a, _index=operator.index): member in Fraction
/third_party/node/deps/v8/third_party/markupsafe/
H A D__init__.py221 __int__ = lambda s: int(s.obj) variable in _MarkupEscapeHelper
/third_party/node/tools/inspector_protocol/markupsafe/
H A D__init__.py221 __int__ = lambda s: int(s.obj) variable in _MarkupEscapeHelper
/third_party/skia/third_party/externals/markupsafe/
H A D__init__.py221 __int__ = lambda s: int(s.obj) variable in _MarkupEscapeHelper
/third_party/python/Lib/test/test_capi/
H A Dtest_getargs.py81 def __int__(self): member in Int
85 def __int__(self): member in IntSubclass
89 def __int__(self): member in BadInt
93 def __int__(self): member in BadInt2
97 def __int__(self): member in BadInt3
258 # it does not accept float, or instances with __int__
/third_party/markupsafe/
H A D__init__.py317 def __int__(self) -> int: member in _MarkupEscapeHelper
/third_party/python/Lib/ctypes/test/
H A Dtest_numbers.py125 def __int__(self): member in NumberTestCase.test_integers.IntLike
/third_party/littlefs/scripts/
H A Dreadmdir.py166 def __int__(self): member in Tag
H A Dstructs.py55 def __int__(self): member in Int
H A Dcov.py59 def __int__(self): member in Int
/third_party/python/Include/internal/
H A Dpycore_global_strings.h127 STRUCT_FOR_ID(__int__)
/third_party/node/deps/v8/third_party/jinja2/
H A Druntime.py794 __int__
/third_party/node/tools/inspector_protocol/jinja2/
H A Druntime.py646 __getitem__ = __lt__ = __le__ = __gt__ = __ge__ = __int__ = \
/third_party/skia/third_party/externals/jinja2/
H A Druntime.py794 __int__
/third_party/jinja2/
H A Druntime.py869 __int__ = __float__ = __complex__ = _fail_with_undefined_error

Completed in 30 milliseconds

123