Re: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).

2014年3月10日 06:38:25 -0700

On 10 Mar 2014 23:26, "Antoine Pitrou" <[email protected]> wrote:
>
> On 2014年3月10日 23:09:53 +1000
> Nick Coghlan <[email protected]> wrote:
> > On 10 Mar 2014 11:36, "r.david.murray" <[email protected]>
wrote:
> > >
> > > +* The ``U`` mode accepted by various ``open`` functions is
deprecated.
> > > + In Python3 it does not do anything useful, and should be replaced
by
> > > + appropriate uses of :class:`io.TextIOWrapper` (if needed) and its
> > *newline*
> > > + argument.
> > > +
> >
> > Huh, I missed that change. Don't we still need U when writing 2/3
> > compatible code at this point?
>
> Define "need" :-) I rarely if ever see "U" used in 2.x code, so I don't
> think the need is very pressing in general.
True, normal text mode is much more common. I'm OK with waiting to see if
anyone actually complains about the deprecation :)
Cheers,
Nick.
>
> Regards
>
> Antoine.
>
>
> _______________________________________________
> Python-checkins mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-checkins
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to