[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

Serhiy Storchaka report at bugs.python.org
Tue Nov 7 05:12:35 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The problem is with _WindowsConsoleIO.

C:\py\cpython>python.bat -u -c "import sys; sys.stdout.buffer.write(b'')"
Running Release|Win32 interpreter...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [WinError 87] The parameter is incorrect

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31966>
_______________________________________


More information about the Python-bugs-list mailing list