Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59558

Unicode stdin/stdout (was: Re: python 3.3 repr)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'binary': 0.07; 'received:internal': 0.09; 'sfxlen:2': 0.11; 'windows': 0.15; 'expects': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject:3.3': 0.16; 'subject:Unicode': 0.16; 'sys.stdout': 0.16; 'subject:python': 0.16; 'replace': 0.24; 'unicode': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; 'to:no real name:2**1': 0.29; 'code': 0.31; 'class': 0.32; 'problem': 0.35; 'received:66': 0.35; 'subject: (': 0.35; 'there': 0.35; 'received:10': 0.37; 'handle': 0.38; 'to:addr :python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'break': 0.61; 'header:Message- Id:1': 0.63; 'real': 0.63; 'to:addr:python-ideas': 0.67
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= XrSAN6M3Y3FTvSxPXCTzFDu4sHo=; b=SWfFHridnVRQOwWVnlfidBF/y4zd/HkN LWJG1q17cKtW6kPWSnm+IgDkvWb2rUzuSvZ+1lUYP/6Kt9pY7GUR3jORJdrh6HQX J5vQP3QHbDCf+ezp5FFYU9LbquSBtEdvw0bTJeAHFeudMs/nHjHDDAxF7du78wrs ZwG18l0KfI0=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=XrSAN6M3Y3FTvSxPXCTzFDu4sHo=; b=Bxf ZrNq9TBYcPaWO+wBUOXGtoz3q9okeISFqVo6IN6vCo3asP485jKLmNCqKCWVKJ4S pk/7LeOiZ0BV/1mDUVTx0kZ1JbQWlzKKmcE2bBbwP+kPrUvYgjaOJkJ1ONMiaVGN mmBOrAL+BAzvY9ctUGzO/l2DvUd5N+cJAq5MWPUk=
X-Sasl-Enc Eji2OX62t1+ntMOaQjOwiF0X5WLoP+odZjQPGWbSsnAi 1384539385
From random832@fastmail.us
To python-list@python.org, python-ideas@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-d4893488
In-Reply-To <5286054F.6000707@chamonix.reportlab.co.uk>
References <5286054F.6000707@chamonix.reportlab.co.uk>
Subject Unicode stdin/stdout (was: Re: python 3.3 repr)
Date Fri, 15 Nov 2013 13:16:25 -0500
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2682.1384539389.18130.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384539389 news.xs4all.nl 15964 [2001:888:2000:d::a6]:48289
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:59558

Show key headers only | View raw


Of course, the real solution to this issue is to replace sys.stdout on
windows with an object that can handle Unicode directly with the
WriteConsoleW function - the problem there is that it will break code
that expects to be able to use sys.stdout.buffer for binary I/O. I also
wasn't able to get the analogous stdin replacement class to work with
input() in my attempts.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Unicode stdin/stdout (was: Re: python 3.3 repr) random832@fastmail.us - 2013-11-15 13:16 -0500

csiph-web