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

2014年3月10日 06:21:14 -0700

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:
> >
> > http://hg.python.org/cpython/rev/2d5544afb510
> > changeset: 89547:2d5544afb510
> > user: R David Murray <[email protected]>
> > date: Sun Mar 09 20:33:35 2014 -0400
> > summary:
> > whatsnew: 'U' mode deprecation (#15204).
> >
> > files:
> > Doc/whatsnew/3.4.rst | 14 +++++++++++++-
> > 1 files changed, 13 insertions(+), 1 deletions(-)
> >
> >
> > diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
> > --- a/Doc/whatsnew/3.4.rst
> > +++ b/Doc/whatsnew/3.4.rst
> > @@ -1948,6 +1948,11 @@
> > * The :mod:`sysconfig` key ``SO`` is deprecated, it has been replaced by
> > ``EXT_SUFFIX``.
> >
> > +* 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? If so, perhaps we may want to reconsider
> this particular deprecation in 3.4.1.
It's a deprecation, not a removal. I believe the idea is to not remove
it before 4.0.
--David
_______________________________________________
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