When I paste code that is one line and my REPL window is small the text that would not be shown because it is offscreen is displayed after pressing enter.
I can't remove the text or use the arrow keys to navigate the letters since the >>> prompt is empty.
>>> thread = threading.Thread(target=lambda: threading.current_thread()\
>
>>> name == 'MainThread')