This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Guillaume Aldebert
Recipients Guillaume Aldebert, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-11-07.09:40:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510047605.77.0.213398074469.issue31966@psf.upfronthosting.co.za>
In-reply-to
Content
noticed on windows10, 3.6.3-64 and 3.7.0a2-64:

using this test.py file:

#!/usr/bin/env python3
print('hello\n', end='', flush=True)

and running it in unbuffered mode:

C:\Dev>py -u test.py
hello
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    print('hello\n', end='', flush=True)
OSError: [WinError 87] The parameter is incorrect

Note that (still using py -u):

print('hello', end='', flush=True) # works fine
print('', end='', flush=True) # raises OSError as well
History
Date User Action Args
2017-11-07 09:40:05Guillaume Aldebertsetrecipients: + Guillaume Aldebert, paul.moore, tim.golden, zach.ware, steve.dower
2017-11-07 09:40:05Guillaume Aldebertsetmessageid: <1510047605.77.0.213398074469.issue31966@psf.upfronthosting.co.za>
2017-11-07 09:40:05Guillaume Aldebertlinkissue31966 messages
2017-11-07 09:40:05Guillaume Aldebertcreate