[Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204). (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Mon Mar 10 14:36:19 CET 2014
- Previous message: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).
- Next message: [Python-Dev] cpython: whatsnew: 'U' mode deprecation (#15204).
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10 Mar 2014 23:26, "Antoine Pitrou" <solipsis at pitrou.net> wrote:
On Mon, 10 Mar 2014 23:09:53 +1000 Nick Coghlan <ncoghlan at gmail.com> wrote: > On 10 Mar 2014 11:36, "r.david.murray" <python-checkins at python.org> wrote: > > > > +* The
U
mode accepted by variousopen
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 Python-checkins at python.org https://mail.python.org/mailman/listinfo/python-checkins -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140310/cda8f3bc/attachment-0001.html>
- Previous message: [Python-Dev] [Python-checkins] cpython: whatsnew: 'U' mode deprecation (#15204).
- Next message: [Python-Dev] cpython: whatsnew: 'U' mode deprecation (#15204).
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]