On Mon, May 02, 2022 at 05:42:12PM -0000, sam.z.e...@gmail.com wrote: > input(prompt=None, /, infile=None, outfile=None)
> What do people think about this? I think I want to see some examples of how and why you would use it, and why one couldn't just use the redirect_stdout context manager. (Plus not-yet-existing, but hopefully soon, redirect_stdin.) Long before we had context managers, I manually redirected stdin and stdout to programmatically feed input and capture output from `raw_input`. It would be nice to be able to do that more easily, but I'm not sure that parameters to the function are better than context managers. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/UAWIRR5IR7F65VECFID3UIZ775DDOBBE/ Code of Conduct: http://python.org/psf/codeofconduct/