◐ Shell
clean mode source ↗

Message 167486 - Python tracker

Antoine Pitrou added the comment:
>
>> We should not convert \n with -u command line option or PYTHONUNBUFFERED was set.
>
> Why that? What do universal newlines have to do with buffering?

Man page of Python says 

  -u Force  stdin,  stdout  and  stderr to be totally unbuffered.  On
     systems where it matters, also put stdin, stdout and  stderr  in
     binary  mode.   

test_httpservers depends on this behavior, but was implemented as documented in Python 3.