MCPcopy Index your code
hub / github.com/python/cpython / do_input

Method do_input

Lib/idlelib/idle_test/test_sidebar.py:495–501  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

493 )
494
495 def do_input(self, input):
496 shell = self.shell
497 text = shell.text
498 for line_index, line in enumerate(input.split('\n')):
499 if line_index > 0:
500 text.event_generate('<<newline-and-indent>>')
501 text.insert('insert', line, 'stdin')
502
503 def test_initial_state(self):
504 sidebar_lines = self.get_sidebar_lines()

Calls 4

enumerateFunction · 0.85
event_generateMethod · 0.80
splitMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected