On Fri, Aug 25, 2017 at 9:23 AM, Nick Coghlan <ncogh...@gmail.com> wrote: [..] > And while PEP 550 doesn't handle the stream redirection case natively > (since it doesn't allow for suspend/resume callbacks the way PEP 525 > does), it at least allows for the development of a context-aware > output stream wrapper API where:
PEP 525 can't handle streams redirection -- it can do it only for single-threaded programs. sys.stdout/stderr/stdin are global variables, that's how the API is specified. API users assume that the change is process-wide. Yury _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com