[issue31603] Please add argument to override stdin/out/err in the input builtin

2022-01-20 Thread Wren Turkal
Wren Turkal added the comment: I'm not sure that I ever got a definitive issue, but I didn't have time to push it forward. I still think the idea has merit. I'd love to see it implemented, but I don't have the time to pursue it right now. Thanks, wt On Mon, Jan 17, 2022 at 10:23 AM Irit

[issue31603] Please add argument to override stdin/out/err in the input builtin

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: See also Issue1927. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31603] Please add argument to override stdin/out/err in the input builtin

2019-05-06 Thread anthony shaw
anthony shaw added the comment: The discussion on python-ideas has some unresolved questions. Wren, did you get a definitive answer on this idea? -- nosy: +anthonypjshaw ___ Python tracker

[issue31603] Please add argument to override stdin/out/err in the input builtin

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: For reference, here's the link to the Python ideas thread: https://mail.python.org/pipermail/python-ideas/2017-September/047230.html -- nosy: +cheryl.sabella ___ Python tracker

[issue31603] Please add argument to override stdin/out/err in the input builtin

2017-09-28 Thread Wren Turkal
Wren Turkal added the comment: Added a PR to facilitate discussion on python-ideas. -- keywords: +patch pull_requests: +3798 stage: -> patch review ___ Python tracker

[issue31603] Please add argument to override stdin/out/err in the input builtin

2017-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: input() is a convenient function for simple user interaction. If you need to read a data from different file object just use its readline() method. -- nosy: +serhiy.storchaka ___

[issue31603] Please add argument to override stdin/out/err in the input builtin

2017-09-27 Thread R. David Murray
R. David Murray added the comment: This is probably a topic for the python-ideas mailing list. For example, rather than complicating input, it might be better to propose adding a redirect_stdin to contextlib to parallel the two existing redirect context managers. I

[issue31603] Please add argument to override stdin/out/err in the input builtin

2017-09-27 Thread Wren Turkal
Wren Turkal added the comment: This might also allow simplification of the getpass.unix_getpass() logic. I am not 100% sure about that yet though. -- ___ Python tracker

[issue31603] Please add argument to override stdin/out/err in the input builtin

2017-09-27 Thread Wren Turkal
New submission from Wren Turkal : I would really love to add a few params to input so that it's signature looked more like so: def input(prompt, /, *, fin=sys.stdin, fout=sys.stdout, ferr=sys.stderr): ... This would certainly make overriding the the files in