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: 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> <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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, May 5, 2015 at 6:31 PM, Steven D'Aprano 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