Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89945

Re: when does newlines get set in universal newlines mode?

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'attribute': 0.07; 'delimited': 0.09; 'imply': 0.09; 'option,': 0.09; 'subject:set': 0.09; 'cc:addr:python-list': 0.11; 'caveat': 0.16; 'erroneously': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'macs': 0.16; 'newlines': 0.16; 'subject:when': 0.16; 'wrote:': 0.18; 'basically': 0.19; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'instance,': 0.24; 'cc:2**0': 0.24; 'second': 0.26; 'header :In-Reply-To:1': 0.27; 'fixed': 0.29; 'chris': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'documenting': 0.31; 'steven': 0.31; 'file': 0.32; 'probably': 0.32; 'text': 0.33; 'not.': 0.33; 'used,': 0.33; 'could': 0.34; 'created': 0.35; 'something': 0.35; 'monday': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'easily': 0.37; 'being': 0.38; 'files': 0.38; 'pm,': 0.38; 'removing': 0.60; 'more': 0.64; 'worth': 0.66; 'subject:get': 0.81; '2015': 0.84; 'complexity': 0.84; 'history,': 0.84; 'imagine,': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=WUDtExLtM4F3oqKjjCZkQ1S6X/zLGQQJ8Pd8TbIbj1Q=; b=BG+NOXslNbSQDASgRRy0ReGnND/waVVvQ6WYIqOrFRaId3Cqx7EzPP7Mzo6g1sEP2n gOVyc6KCZHfaScnA6FE0EcN1T/2X5phXFAUF0bYZ6s6nME+Ewjc9Enp4qg9Ety6nVx88 LXD0wdC8VulqCLpgHGrTj/YTkCBoN1jhk8C7Yeyz+nETHtOJhzaiXRSsI/9/zsX4nAeJ kyvu32y7XcmLVqzITn1DS6Dzu4BtdC4ybGjg0GE2c8QLl2RMeR9BLtu09WWnLtl9uAS8 z1LGNWIDzrL+mTTlY7g5Zr3bRJl9+uaf+FU1s8CDrlj3jhu63M5JFdUZXBxTUAfVl1QN XWpA==
MIME-Version 1.0
X-Received by 10.107.16.32 with SMTP id y32mr32374374ioi.53.1430815272345; Tue, 05 May 2015 01:41:12 -0700 (PDT)
In-Reply-To <55487fe3$0$12919$c3e8da3$5496439d@news.astraweb.com>
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 Tue, 5 May 2015 18:41:12 +1000
Subject Re: when does newlines get set in universal newlines mode?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.112.1430815275.12865.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430815275 news.xs4all.nl 2836 [2001:888:2000:d::a6]:35219
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89945

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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