X-Received: by 10.236.144.136 with SMTP id n8mr7276253yhj.22.1400246431918; Fri, 16 May 2014 06:20:31 -0700 (PDT) X-Received: by 10.140.97.119 with SMTP id l110mr22969qge.21.1400246431804; Fri, 16 May 2014 06:20:31 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!c1no8111961igq.0!news-out.google.com!qf4ni2017igc.0!nntp.google.com!c1no8111951igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Fri, 16 May 2014 06:20:31 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c6f:21f0:191:aa36:fe99:8bd0; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_ NNTP-Posting-Host: 2a02:120b:2c6f:21f0:191:aa36:fe99:8bd0 References: <8P7cv.78617$Sp6.8377@fx15.am4> <537172eb$0$29980$c3e8da3$5496439d@news.astraweb.com> <5372b493$0$29977$c3e8da3$5496439d@news.astraweb.com> <5372BE8B.3070302@stoneleaf.us> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Everything you did not want to know about Unicode in Python 3 From: wxjmfauth@gmail.com Injection-Date: Fri, 16 May 2014 13:20:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:71661 Le vendredi 16 mai 2014 13:50:47 UTC+2, Antoine Pitrou a =E9crit=A0: > Terry Reedy udel.edu> writes: >=20 > >=20 >=20 > > On 5/13/2014 8:53 PM, Ethan Furman wrote: >=20 > > > On 05/13/2014 05:10 PM, Steven D'Aprano wrote: >=20 > > >> On Tue, 13 May 2014 10:08:42 -0600, Ian Kelly wrote: >=20 > > >> >=20 > > >>> Because Python 3 presents stdin and stdout as text streams however,= it >=20 > > >>> makes them more difficult to use with binary data, which is why Arm= in >=20 > > >>> sets up all that extra code to make sure his file objects are binar= y. >=20 > > >> >=20 > > >> What surprises me is how hard that is. Surely there's a simpler way = to >=20 > > >> open stdin and stdout in binary mode? If not, there ought to be. >=20 > > > >=20 > > > Somebody already posted this: >=20 > > > >=20 > > > https://docs.python.org/3/library/sys.html#sys.stdin >=20 > > > >=20 > > > which talks about .detach(). >=20 > >=20 >=20 > > I sent a message to Armin about this. >=20 >=20 >=20 > And the documentation has now been fixed: >=20 > http://bugs.python.org/issue21364 >=20 >=20 >=20 > So something *can* come out of a python-list rantfest, it seems. >=20 >=20 >=20 > Regards >=20 >=20 >=20 > Antoine. =3D=3D=3D=3D=3D=3D http://www.unicode.org/ Avec mes meilleures salutations.