MCPcopy Create free account
hub / github.com/ActiveState/code / readline

Method readline

recipes/Python/572196_RSA/recipe-572196.py:217–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215 self.rbuf=self.rbuf[bytes:]
216 return ret
217 def readline(self):
218 ret=""
219 while not ret.endswith('\n'):
220 ln=len(ret)
221 ret+=self.read(1)
222 if len(ret)==ln:
223 break
224 return ret
225 def readlines(self):
226 ret=[]
227 while ret[-1]:

Callers 15

readlinesMethod · 0.95
nextMethod · 0.95
recipe-66061.pyFile · 0.45
__getUseMethod · 0.45
__editorMethod · 0.45
__doEmergeMethod · 0.45
get_inputFunction · 0.45
promptFunction · 0.45
file2matrixFunction · 0.45
scanfFunction · 0.45
nextMethod · 0.45
nextMethod · 0.45

Calls 2

readMethod · 0.95
endswithMethod · 0.80

Tested by 2

test_whileFunction · 0.36
test_recursionFunction · 0.36