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 metolone
Recipients metolone
Date 2009-06-26.02:20:26
SpamBayes Score 8.523007e-08
Marked as misclassified No
Message-id <1245982830.09.0.978078619889.issue6345@psf.upfronthosting.co.za>
In-reply-to
Content
According to Issue xxxx, sys.stdout.buffer is the binary stream 
underlying stdout.  I see the following behavior on 3.0.1 and 3.1rc2 
when writing to a console window:

Python 3.1rc2 (r31rc2:73414, Jun 13 2009, 16:43:15) [MSC v.1500 32 bit 
(Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> 
sys.stdout.buffer.write('hello\u200bworld'.encode('cp437','replace'))
hello?world11

Notice the extra '11' at the end of the string.
History
Date User Action Args
2009-06-26 02:20:30metolonesetrecipients: + metolone
2009-06-26 02:20:30metolonesetmessageid: <1245982830.09.0.978078619889.issue6345@psf.upfronthosting.co.za>
2009-06-26 02:20:27metolonelinkissue6345 messages
2009-06-26 02:20:26metolonecreate