[issue37161] Pre-populate user editable text in input()

2019-06-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like the idea, but doubt this can be implemented. Python assumes a least-common-denominator dumb terminal. Program output is sent on stdout/err and displayed read-only. Used input is read from stdin. It is put there either key by key or after the Enter

[issue37161] Pre-populate user editable text in input()

2019-06-05 Thread Steven D'Aprano
New submission from Steven D'Aprano : When asking for user input, it is often very helpful to be able to pre-populate the user's input string and allow them to edit it, rather than expecting them to re-type the input from scratch. I propose that the input() built-in take a second optional arg