Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'output': 0.05; 'subject:Python': 0.06; 'encoded': 0.07; 'level,': 0.07; 'subject:file': 0.07; 'bits': 0.09; 'output,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'block.': 0.16; 'blocks': 0.16; 'delimiters': 0.16; 'formatted': 0.16; 'formfeed': 0.16; 'implies': 0.16; 'language)': 0.16; 'message-id:@4ax.com': 0.16; 'mode,': 0.16; 'newline,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:log': 0.16; 'tab,': 0.16; 'written': 0.21; 'parse': 0.24; 'specify': 0.24; 'url:home': 0.24; 'fairly': 0.24; "i've": 0.25; 'certain': 0.27; 'header:X-Complaints-To:1': 0.27; 'record': 0.27; 'character': 0.29; "i'm": 0.30; 'getting': 0.31; '(maybe': 0.31; 'file': 0.32; 'text': 0.33; 'fri,': 0.33; 'maybe': 0.34; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'application': 0.37; 'too': 0.37; 'handle': 0.38; 'to:addr :python-list': 0.38; 'short': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'entire': 0.61; 'skip:n 10': 0.64; 'more': 0.64; 'finally': 0.65; 'bottom': 0.67; 'determine': 0.67; 'mar': 0.68; 'records': 0.73; 'behaviors': 0.74; 'special': 0.74; 'activated': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Date: Sat, 22 Mar 2014 11:25:18 -0400 Organization: IISS Elusive Unicorn References: <827c7585-6c2a-4329-861f-0fdaa629b050@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 108.79.222.197 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: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395501926 news.xs4all.nl 2957 [2001:888:2000:d::a6]:32999 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68781 On Fri, 21 Mar 2014 23:30:06 -0500, Mark H Harris declaimed the following: > Well, and now that I'm thinking about this again, since we have >unicode, maybe we should have an entire set of standard "file" >delimiters for flat-files. > > But the bottom line (pun intended) is that I just want to suck the >lines in, and I only want the system to have to handle the delimiters; What "system"... as I understand the UNIX/C stream concept, there are no "system" delimiters -- it is up to the application program to determine how to respond to special characters. Maybe you'd prefer VMS FORTRAN segmented records -- which encoded start-of-record and end-of-record bits at the OS level, while writing blocks of (as I recall -- been 15 years since I had to parse a FORTRAN text file in a non-compatible language) no more than 256-bytes. A long text record then would something like: 01lots of text 00carrying over to more blocks 00until finally getting to 10the end block. A short line would have both start and end markers 11a short line http://h71000.www7.hp.com/doc/82final/6443/6443pro_021.html#subhead_segrec_type implies unformatted (binary) files, but I'm fairly certain I've seen text contents too (maybe written as unformatted). To get a "C-style" file one had to go out of their way to specify a stream mode, what the line end character would be, and for formatted output, often a "carriagecontrol" specification when opening the file (as I recall that activated newline, linefeed, tab, and formfeed behaviors on output files). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/