New submission from James Hutchison <[email protected]>:
In windows, 64-bit, python *mostly* writes only a \n to stdout even though it's
mode is 'w'. However it sometimes writes a \r\n on certain print statements and
erratically when I have multiple processes writing to stdout.
Output looks fine in console, in IDLE, and using v.3.1
Example with multiple processes writing to stdout out using the same code:
print("TESTCODE"); (note that in windows, the naked \n is ignored):
TESTCODETESTCODE
TESTCODE
TESTCODE
TESTCODETESTCODETESTCODE
TESTCODE
Windows program that calls python and receives its piped output is a C# .NET
program.
----------
components: IO, Windows
messages: 135076
nosy: Jimbofbx
priority: normal
severity: normal
status: open
title: redirected output - stdout writes newline as \n in windows
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com