Is there any easy way to handle multiple lines user input in command-line Python application?
I was looking for an answer without any result, becaus
You could get the text from clipboard without any additional actions which raw_input()
requires from a user to paste the multiline text:
import Tkinter
root = Tkinter.Tk()
root.withdraw()
text = root.clipboard_get()
root.destroy()
See also How do I copy a string to the clipboard on Windows using Python?