MCPcopy Create free account
hub / github.com/bpython/bpython / readline

Method readline

bpython/curtsiesfrontend/repl.py:247–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 self.readline_results = fakestdin.readline_results[:]
246
247 def readline(self):
248 if self.readline_results:
249 value = self.readline_results.pop(0)
250 else:
251 value = "no saved input available"
252 self.repl.send_to_stdouterr(value)
253 return value
254
255
256class ImportLoader:

Callers

nothing calls this directly

Calls 1

send_to_stdouterrMethod · 0.80

Tested by

no test coverage detected