Re: [Python-Dev] Scope, not context? (was Re: PEP 550 v3 naming)

2017年8月25日 06:39:45 -0700

On Fri, Aug 25, 2017 at 9:23 AM, Nick Coghlan <[email protected]> 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
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to