I'm using Python 3.2 on Ubuntu 11.10 (Linux). A piece of my new code looks like this:
text = input("TEXT=")
Is it possible to get some predefined string after the prompt, so I can adjust it if needed? It should be like this:
python3 file
TEXT=thepredefinedtextishere
Now I press Backspace 3 times
TEXT=thepredefinedtextish
Now I press Enter, and the variable text
should be thepredefinedtextish
If your Python interpreter is linked against GNU readline,
input()
will use it. In this case, the following should work: