Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'subject:Python': 0.06; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'times,': 0.14; '\\n,': 0.16; 'carriage': 0.16; 'collapse': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Reading': 0.16; 'subject:log': 0.16; 'input': 0.22; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'returned': 0.30; 'code': 0.31; '(maybe': 0.31; 'universal': 0.31; 'probably': 0.32; 'device': 0.34; 'subject: (': 0.35; 'but': 0.35; 'next': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'actions': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'first': 0.61; 'field': 0.63; 'provide': 0.64; 'different': 0.65; 'mar': 0.68; 'line,': 0.68; 'prompt': 0.68; 'bare': 0.84; 'collapsing': 0.84; 'standards.': 0.84; 'controller': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary) Date: Mon, 24 Mar 2014 19:30:31 -0400 Organization: IISS Elusive Unicorn References: <532f9a6b$0$29994$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-20-8.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395703845 news.xs4all.nl 2956 [2001:888:2000:d::a6]:38281 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68912 On Sun, 23 Mar 2014 22:48:49 -0500, Mark H Harris declaimed the following: >Which was my point in the first place about new-line standards. We all >know why its important to collapse \r\n into \n, but why(?) in a >general way would this be the universal desired end? (rhetorical) Your >example of byte-for-byte perfect copy is one good case (they are not). >Another might be controller code (maybe ancient) where the \r is >'required' and collapsing it to \n won't work on the device (tty, or >other). > In ancient times, having \r and \n perform different actions were almost mandated... Ever seen how a password prompt on a Teletype was handled? By using a bare \r to overtype the input field with X, $, probably M, O, and 8 too... {And I recall standard practice was to hit \r, to return the carriage, \n for next line, and one RUBOUT to provide a delay while the carriage returned to the left } -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/