Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: using binary in python Date: Tue, 10 Nov 2015 15:44:38 -0500 Lines: 11 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.uni-berlin.de ONd6opBnvdYtYYUhGONGHAxOJTEj4/ax3PMn1xFRkkew== Cancel-Lock: sha1:THAdm88jm2vm+2SgwFCNLUARG4E= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'trailing': 0.07; 'marking': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'subject:python': 0.14; 'bits).': 0.16; 'permits': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'segment': 0.16; 'windows': 0.20; 'strict': 0.22; 'unix/linux': 0.22; 'defined': 0.23; 'ignored.': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'possibility': 0.27; 'ansi': 0.29; 'spaces': 0.29; 'another': 0.32; 'received:comcast.net': 0.33; 'file': 0.34; 'text': 0.35; 'formats': 0.35; 'there': 0.36; '(and': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'operating': 0.37; 'received:org': 0.37; 'end': 0.39; 'means': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'maximum': 0.61; 'records': 0.70; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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: , Xref: csiph.com comp.lang.python:98608 Dennis Lee Bieber writes: > To be strict -- a text file has system defined means of marking > line endings. UNIX/Linux uses just a character; Windows uses the pair > . TRS-DOS used just for end of line. Some operating systems > may have used count-delimited formats (and then there is the VMS FORTRAN > segmented records with start and end segment bits). Another possibility would be fixed-length records. The ANSI C standard permits a maximum line length (no less than 254) and for trailing spaces to be ignored.