Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89945
| References | <3c45772b-77e0-4c17-8b3d-aa246c4b511c@googlegroups.com> <mi7n22$mbc$1@ger.gmane.org> <mailman.83.1430741619.12865.python-list@python.org> <55487fe3$0$12919$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2015-05-05 18:41 +1000 |
| Subject | Re: when does newlines get set in universal newlines mode? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.112.1430815275.12865.python-list@python.org> (permalink) |
On Tue, May 5, 2015 at 6:31 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Monday 04 May 2015 22:13, Chris Angelico wrote: > >> It may be worth documenting this limitation, but it's not something >> that can easily be fixed without removing support for \r newlines - >> although that might be an option, given that non-OSX Macs are >> basically history now. > > Non-OSX Macs are history, but the text files they created are not. True. Like I said, "might be". I could imagine, for instance, a caveat being put on the newlines attribute saying that "when reading a file delimited by \r, this may erroneously imply that \r\n is being used, until a second line has been read". But that's probably more complexity than it's worth. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
when does newlines get set in universal newlines mode? arekfu@gmail.com - 2015-05-04 02:50 -0700
Re: when does newlines get set in universal newlines mode? Peter Otten <__peter__@web.de> - 2015-05-04 14:01 +0200
Re: when does newlines get set in universal newlines mode? Chris Angelico <rosuav@gmail.com> - 2015-05-04 22:13 +1000
Re: when does newlines get set in universal newlines mode? Davide Mancusi <arekfu@gmail.com> - 2015-05-04 06:35 -0700
Re: when does newlines get set in universal newlines mode? Terry Reedy <tjreedy@udel.edu> - 2015-05-04 13:38 -0400
Re: when does newlines get set in universal newlines mode? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-05 18:31 +1000
Re: when does newlines get set in universal newlines mode? Chris Angelico <rosuav@gmail.com> - 2015-05-05 18:41 +1000
Re: when does newlines get set in universal newlines mode? Davide Mancusi <arekfu@gmail.com> - 2015-05-05 02:23 -0700
Re: when does newlines get set in universal newlines mode? Chris Angelico <rosuav@gmail.com> - 2015-05-05 19:28 +1000
Re: when does newlines get set in universal newlines mode? Davide Mancusi <arekfu@gmail.com> - 2015-05-05 03:58 -0700
Re: when does newlines get set in universal newlines mode? Peter Otten <__peter__@web.de> - 2015-05-04 17:17 +0200
Re: when does newlines get set in universal newlines mode? Chris Angelico <rosuav@gmail.com> - 2015-05-05 01:26 +1000
Re: when does newlines get set in universal newlines mode? Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-04 09:33 -0600
csiph-web