/external/python/cpython2/Lib/test/crashers/ |
buffer_mutate.py | 18 def __index__(self): member in class:PseudoIndex
|
/external/python/cpython3/Lib/test/ |
test_slice.py | 19 if hasattr(arg, '__index__'): 24 "None or have an __index__ method") 62 # Class providing an __index__ method. Used for testing slice.indices. 68 def __index__(self): member in class:MyIndexable
|
test_class.py | 90 def __index__(self, *args): 364 self.assertCallStack([('__index__', (testme,))]) 367 self.assertCallStack([('__index__', (testme,))]) 471 __index__ = __int__ variable in class:ClassTests.testBadTypeReturned.BadTypeClass
|
test_cmath.py | 225 def __index__(self): return 2 member in class:CMathTests.test_user_object.MyInt 228 def __index__(self): return 2 member in class:CMathTests.test_user_object.MyIntOS 260 # __int__ or __index__. An old-style class
|
test_index.py | 7 def __index__(self): member in class:newstyle 11 def __index__(self): member in class:TrapInt 38 self.assertEqual(6 .__index__(), 6) 39 self.assertEqual(-7 .__index__(), -7) 40 self.assertEqual(self.o.__index__(), 4) 41 self.assertEqual(self.n.__index__(), 5) 42 self.assertEqual(True.__index__(), 1) 43 self.assertEqual(False.__index__(), 0) 59 # __index__ should be used when computing indices, even for int 62 def __index__(self) member in class:BaseTestCase.test_int_subclass_with_index.MyInt 76 def __index__(self): member in class:BaseTestCase.test_index_returns_int_subclass.BadInt 80 def __index__(self): member in class:BaseTestCase.test_index_returns_int_subclass.BadInt2 [all...] |
test_int.py | 285 def __index__(self): member in class:IntTestCases.test_int_base_indexable.MyIndexable
|
test_range.py | 302 # User-defined class with an __index__ method 306 def __index__(self): member in class:RangeTest.test_user_index_method.I 311 # User-defined class with a failing __index__ method 313 def __index__(self): member in class:RangeTest.test_user_index_method.IX 317 # User-defined class with an invalid __index__ method 319 def __index__(self): member in class:RangeTest.test_user_index_method.IN 439 def __index__(self): return 1 member in class:RangeTest.test_types.C2
|
test_struct.py | 266 # Objects with an '__index__' method should be allowed 268 # '__index__' method returns an 'int'. 273 def __index__(self): member in class:StructTest.test_integers.IntTester.run.Indexable 276 # If the '__index__' method raises a type error, then 279 def __index__(self): member in class:StructTest.test_integers.IntTester.run.BadIndex 301 # Check for legitimate values from '__index__'. 308 "with '__index__' method") 310 # Check for bogus values from '__index__'. [all...] |
test_memoryio.py | 17 def __index__(self): member in class:IntLike 19 __int__ = __index__
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
numbers.py | 305 def __index__(self):
member in class:Integral
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
numbers.py | 305 def __index__(self):
member in class:Integral
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_cmath.py | 172 def __index__(self): return 2
member in class:CMathTests.test_user_object.MyInt 176 def __index__(self): return 2
member in class:CMathTests.test_user_object.MyIntOS 208 # __int__, __long__ or __index__. An old-style class
|
test_index.py | 9 def __index__(self):
member in class:oldstyle 13 def __index__(self):
member in class:newstyle 17 def __index__(self):
member in class:TrapInt 21 def __index__(self):
member in class:TrapLong 48 self.assertEqual(6 .__index__(), 6)
49 self.assertEqual(-7L.__index__(), -7)
50 self.assertEqual(self.o.__index__(), 4)
51 self.assertEqual(self.n.__index__(), 5)
52 self.assertEqual(True.__index__(), 1)
53 self.assertEqual(False.__index__(), 0) [all...] |
test_struct.py | 293 # Objects with an '__index__' method should be allowed
295 # '__index__' method returns and 'int' or 'long'.
300 def __index__(self):
member in class:StructTest.test_integers.IntTester.run.Indexable 303 # If the '__index__' method raises a type error, then
306 def __index__(self):
member in class:StructTest.test_integers.IntTester.run.BadIndex 337 # Check for legitimate values from '__index__'.
344 "with '__index__' method")
346 # Check for bogus values from '__index__'.
|
test_bytes.py | 37 def __index__(self):
member in class:Indexable [all...] |
test_float.py | 690 # any type with an __index__ method should be permitted as
695 def __index__(self): return 4
member in class:RoundTestCase.test_second_argument_type.MyIndex [all...] |
/external/python/cpython2/Lib/ |
numbers.py | 305 def __index__(self): member in class:Integral
|
/external/python/cpython2/Lib/test/ |
test_cmath.py | 172 def __index__(self): return 2 member in class:CMathTests.test_user_object.MyInt 176 def __index__(self): return 2 member in class:CMathTests.test_user_object.MyIntOS 208 # __int__, __long__ or __index__. An old-style class
|
test_index.py | 9 def __index__(self): member in class:oldstyle 13 def __index__(self): member in class:newstyle 17 def __index__(self): member in class:TrapInt 21 def __index__(self): member in class:TrapLong 48 self.assertEqual(6 .__index__(), 6) 49 self.assertEqual(-7L.__index__(), -7) 50 self.assertEqual(self.o.__index__(), 4) 51 self.assertEqual(self.n.__index__(), 5) 52 self.assertEqual(True.__index__(), 1) 53 self.assertEqual(False.__index__(), 0 [all...] |
test_struct.py | 294 # Objects with an '__index__' method should be allowed 296 # '__index__' method returns and 'int' or 'long'. 301 def __index__(self): member in class:StructTest.test_integers.IntTester.run.Indexable 304 # If the '__index__' method raises a type error, then 307 def __index__(self): member in class:StructTest.test_integers.IntTester.run.BadIndex 338 # Check for legitimate values from '__index__'. 345 "with '__index__' method") 347 # Check for bogus values from '__index__'.
|
test_bytes.py | 35 def __index__(self): member in class:Indexable [all...] |
test_float.py | 755 def __index__(self): return 4 member in class:RoundTestCase.test_second_argument_type.MyIndex [all...] |
/external/python/cpython3/Lib/ |
numbers.py | 304 def __index__(self): member in class:Integral
|
/external/scapy/scapy/ |
volatile.py | 112 def __index__(self): member in class:RandNum
|
/external/tensorflow/tensorflow/python/framework/ |
tensor_shape.py | 227 def __index__(self): member in class:Dimension [all...] |