mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
parent
fc7bb8c786
commit
e2a383d062
146 changed files with 1446 additions and 1477 deletions
|
@ -15,7 +15,7 @@ class TrapInt(int):
|
|||
def __index__(self):
|
||||
return self
|
||||
|
||||
class TrapLong(long):
|
||||
class TrapLong(int):
|
||||
def __index__(self):
|
||||
return self
|
||||
|
||||
|
@ -44,7 +44,7 @@ class BaseTestCase(unittest.TestCase):
|
|||
self.o.ind = 4
|
||||
self.n.ind = 5
|
||||
self.assertEqual(6 .__index__(), 6)
|
||||
self.assertEqual(-7L.__index__(), -7)
|
||||
self.assertEqual(-7 .__index__(), -7)
|
||||
self.assertEqual(self.o.__index__(), 4)
|
||||
self.assertEqual(self.n.__index__(), 5)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue