Everything you did not want to know about Unicode in Python 3
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Fri May 16 09:20:31 EDT 2014
Le vendredi 16 mai 2014 13:50:47 UTC+2, Antoine Pitrou a écrit :
> Terry Reedy <tjreedy <at> udel.edu> writes:
>
> >
>
> > On 5/13/2014 8:53 PM, Ethan Furman wrote:
>
> > > On 05/13/2014 05:10 PM, Steven D'Aprano wrote:
>
> > >> On Tue, 13 May 2014 10:08:42 -0600, Ian Kelly wrote:
>
> > >>
>
> > >>> Because Python 3 presents stdin and stdout as text streams however, it
>
> > >>> makes them more difficult to use with binary data, which is why Armin
>
> > >>> sets up all that extra code to make sure his file objects are binary.
>
> > >>
>
> > >> What surprises me is how hard that is. Surely there's a simpler way to
>
> > >> open stdin and stdout in binary mode? If not, there ought to be.
>
> > >
>
> > > Somebody already posted this:
>
> > >
>
> > > https://docs.python.org/3/library/sys.html#sys.stdin
>
> > >
>
> > > which talks about .detach().
>
> >
>
> > I sent a message to Armin about this.
>
>
>
> And the documentation has now been fixed:
>
> http://bugs.python.org/issue21364
>
>
>
> So something *can* come out of a python-list rantfest, it seems.
>
>
>
> Regards
>
>
>
> Antoine.
======
http://www.unicode.org/
Avec mes meilleures salutations.
More information about the Python-list
mailing list