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

Guido van Rossum guido at python.org
Fri Aug 25 11:41:47 EDT 2017


I think the issue with sys.std* is a distraction for this discussion. The issue also seems overstated, and I wouldn't want to change it. The ability to set these is mostly used in small programs that are also single-threaded. Libraries should never mess with them -- it's easy to explicitly pass an output file around, and for errors you should use logging or in a pinch you can write to sys.stderr, but you shouldn't set it.

-- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170825/4053f3df/attachment.html>



More information about the Python-Dev mailing list