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

Method readline

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

r"""Reads the next line from the file. Leaves the '\n' at the end.

(self)

Source from the content-addressed store, hash-verified

174 pywrap_tensorflow.Set_TF_Status_from_Status(status, ret_status)
175
176 def readline(self):
177 r"""Reads the next line from the file. Leaves the '\n' at the end."""
178 self._preread_check()
179 return self._prepare_value(self._read_buf.ReadLineAsString())
180
181 def readlines(self):
182 """Returns all lines from the file in a list."""

Callers 15

readlinesMethod · 0.95
nextMethod · 0.95
split_by_user.pyFile · 0.80
split_by_user.pyFile · 0.80
__next__Method · 0.80
__next__Method · 0.80
__next__Method · 0.80
__next__Method · 0.80
gather_cpu_infoFunction · 0.80
retrieve_from_webFunction · 0.80
testReadLineMethod · 0.80

Calls 3

_preread_checkMethod · 0.95
_prepare_valueMethod · 0.95
ReadLineAsStringMethod · 0.80

Tested by 8

testReadLineMethod · 0.64
testTellMethod · 0.64
testSeekMethod · 0.64
testSeekFromWhatMethod · 0.64