forked from VimPlug/jedi
@@ -32,9 +32,13 @@ def range(start, stop=None, step=1):
|
|||||||
class file():
|
class file():
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
yield ''
|
yield ''
|
||||||
|
|
||||||
def next(self):
|
def next(self):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
def readlines(self):
|
||||||
|
return ['']
|
||||||
|
|
||||||
|
|
||||||
class xrange():
|
class xrange():
|
||||||
# Attention: this function doesn't exist in Py3k (there it is range).
|
# Attention: this function doesn't exist in Py3k (there it is range).
|
||||||
|
|||||||
@@ -4,3 +4,6 @@ class TextIOWrapper():
|
|||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
yield str()
|
yield str()
|
||||||
|
|
||||||
|
def readlines(self):
|
||||||
|
return ['']
|
||||||
|
|||||||
@@ -65,6 +65,11 @@ class X(): pass
|
|||||||
#? type
|
#? type
|
||||||
type(X)
|
type(X)
|
||||||
|
|
||||||
|
|
||||||
|
with open('foo') as f:
|
||||||
|
for line in f.readlines():
|
||||||
|
#? str()
|
||||||
|
line
|
||||||
# -----------------
|
# -----------------
|
||||||
# enumerate
|
# enumerate
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user