<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">The use of an ASCII compatible encoding is required to maintain compatibility
with code that bypasses the
     <tt class="gmail-docutils gmail-literal">
      TextIOWrapper
     </tt>
     and directly writes ASCII bytes to
the standard streams (for example,
     <a id="gmail-id1" href="https://www.python.org/dev/peps/pep-0528/#process-stdinreader-py" class="gmail-citation-reference">
      [process_stdinreader.py]
     </a>
     ). Code that assumes
a particular encoding for the standard streams other than ASCII will likely
break.
    </blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Note that for example in IDLE there are sys.std* stream objects that don't have buffer attribute. I would argue that it is incorrect to suppose that there is always one.<br><br></div><div class="gmail_extra">Adam Bartoš<br></div><div class="gmail_extra"><br></div></div>