Home
last modified time | relevance | path

Searched refs:__long__ (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_long.py490 def __long__(self): member in LongTest.test_conversion.Foo0
494 def __long__(self): member in LongTest.test_conversion.Foo1
498 def __long__(self): member in LongTest.test_conversion.Foo2
502 def __long__(self): member in LongTest.test_conversion.Foo3
506 def __long__(self): member in LongTest.test_conversion.Foo4
510 def __long__(self): member in LongTest.test_conversion.Foo5
524 def __long__(self): member in LongTest.test_conversion.LongOverridesTrunc
564 def __long__(self): member in LongTest.test_conversion.TruncReturnsLongSubclass
643 def __long__(self): member in LongTest.test_issue9869.BadLong
Dtest_class.py104 def __long__(self, *args): member in AllTests
499 __long__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
516 def __long__(self): member in ClassTests.testMixIntsAndLongs.IntLongMixClass
Dtest_cmath.py171 def __long__(self): return 2L member in CMathTests.test_user_object.MyInt
175 def __long__(self): return 2L member in CMathTests.test_user_object.MyIntOS
Dtest_struct.py284 def __long__(self): member in StructTest.test_integers.IntTester.run.NotAnIntNS
291 def __long__(self): member in StructTest.test_integers.IntTester.run.NotAnIntOS
Dtest_format.py241 def __long__(self): member in FormatTest.test_format.IntFails
Dtest_binop.py80 def __long__(self): member in Rat
/external/python/cpython2/Lib/
Dnumbers.py301 def __long__(self): member in Integral
DUserString.py24 def __long__(self): return long(self.data) member in UserString
Ddecimal.py1619 def __long__(self): member in Decimal
/external/python/cpython2/Demo/classes/
DComplex.py150 def __long__(self): member in Complex
Dbitvec.py326 def __long__(self): member in BitVec
/external/python/cpython2/Misc/
DNEWS5482 long for a class whose __long__ method returns a plain int. This
5484 subclass from an object whose __long__ method returns a plain int.
8927 __long__ method could be packed by 'q', 'Q', '*q', '*Q'; for x with
8928 neither __int__ nor __long__, TypeError used to be raised (with a
9139 object; previously an int would be returned for small values. the __long__
Dcheatsheet1200 int(s) = __int__(s) long(s) = __long__(s)
DHISTORY2778 - The type of values returned by __int__, __float__, __long__,
/external/python/cpython2/Doc/reference/
Ddatamodel.rst2202 object.__long__(self)