mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +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
|
@ -12,7 +12,7 @@ class Sequence:
|
|||
def __getitem__(self, i): return self.seq[i]
|
||||
|
||||
class BadSeq1(Sequence):
|
||||
def __init__(self): self.seq = [7, 'hello', 123L]
|
||||
def __init__(self): self.seq = [7, 'hello', 123]
|
||||
|
||||
class BadSeq2(Sequence):
|
||||
def __init__(self): self.seq = ['a', 'b', 'c']
|
||||
|
@ -902,7 +902,7 @@ class MixinStrUnicodeUserStringTest:
|
|||
def test_subscript(self):
|
||||
self.checkequal(u'a', 'abc', '__getitem__', 0)
|
||||
self.checkequal(u'c', 'abc', '__getitem__', -1)
|
||||
self.checkequal(u'a', 'abc', '__getitem__', 0L)
|
||||
self.checkequal(u'a', 'abc', '__getitem__', 0)
|
||||
self.checkequal(u'abc', 'abc', '__getitem__', slice(0, 3))
|
||||
self.checkequal(u'abc', 'abc', '__getitem__', slice(0, 1000))
|
||||
self.checkequal(u'a', 'abc', '__getitem__', slice(0, 1))
|
||||
|
@ -965,7 +965,7 @@ class MixinStrUnicodeUserStringTest:
|
|||
|
||||
self.checkraises(TypeError, ' ', 'join')
|
||||
self.checkraises(TypeError, ' ', 'join', 7)
|
||||
self.checkraises(TypeError, ' ', 'join', Sequence([7, 'hello', 123L]))
|
||||
self.checkraises(TypeError, ' ', 'join', Sequence([7, 'hello', 123]))
|
||||
try:
|
||||
def f():
|
||||
yield 4 + ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue