MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / readlines

Method readlines

tensorflow/python/lib/io/file_io.py:181–190  ·  view source on GitHub ↗

Returns all lines from the file in a list.

(self)

Source from the content-addressed store, hash-verified

179 return self._prepare_value(self._read_buf.ReadLineAsString())
180
181 def readlines(self):
182 """Returns all lines from the file in a list."""
183 self._preread_check()
184 lines = []
185 while True:
186 s = self.readline()
187 if not s:
188 break
189 lines.append(s)
190 return lines
191
192 def tell(self):
193 """Returns the current position in the file."""

Callers 15

testReadlinesMethod · 0.95
data_shuffleFunction · 0.80
data_shuffleFunction · 0.80
data_shuffleFunction · 0.80
data_shuffleFunction · 0.80
process_opened_fileMethod · 0.80
check_with_goldenFunction · 0.80
test_write_read_fileMethod · 0.80
read_entriesFunction · 0.80
_get_local_worksMethod · 0.80
contentsMethod · 0.80

Calls 3

_preread_checkMethod · 0.95
readlineMethod · 0.95
appendMethod · 0.45

Tested by 8

testReadlinesMethod · 0.76
test_write_read_fileMethod · 0.64
read_entriesFunction · 0.64
contentsMethod · 0.64
test_CSVLoggerMethod · 0.64