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


Groups > comp.lang.python > #68780

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

References (2 earlier) <827c7585-6c2a-4329-861f-0fdaa629b050@googlegroups.com> <f335d76d-2746-40f3-931a-3d46dd469bc1@googlegroups.com> <mailman.8374.1395441860.18130.python-list@python.org> <lgj1pd$10g$1@speranza.aioe.org> <532da347$0$29994$c3e8da3$5496439d@news.astraweb.com>
Date 2014-03-23 02:09 +1100
Subject Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.8402.1395500969.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> Line endings are terminators: they end the line. Whether you consider the
> terminator part of the line or not is a matter of opinion (is the cover
> of a book part of the book?) but consider this:
>
>     If you say that the end of lines are *not* part of the line, then
>     that implies that some parts of the file are not inside any line
>     at all. And that would be just weird.

Not so weird IMO. A file is not a concatenation of lines; it is a
stream of bytes. Now, if you ask Python to read you 512 bytes from a
binary file, and then ask for another 512 bytes, and so on until you
reach the end, then it would indeed be VERY weird if there were parts
of the file that weren't in the returned (byte) strings. But if you
ask for a line, and then another line, and another line, then it's
quite reasonable to interpret U+000A as "line separation" rather than
"line termination", and not return it. (Both interpretations make
sense. I just wish the most obvious form of iteration gave the
cleaner/tidier version, or at very least that there be some really
obvious way to ask for lines-without-endings.) Imagine the output of
GNU find as a series of records. You can ask for those to be separated
by newlines (the default, or -print), or by NULs (with the -print0
command). In either case, the records do not *contain* that value,
they're separated by it; the records consist of file names.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:05 -0700
  Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:08 -0700
  Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-22 09:25 +1100
    Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:34 -0700
      Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:34 -0700
        Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-21 22:44 +0000
          Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark H Harris <harrismh777@gmail.com> - 2014-03-21 22:58 -0500
            Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-22 15:15 +1100
              Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark H Harris <harrismh777@gmail.com> - 2014-03-21 23:30 -0500
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark H Harris <harrismh777@gmail.com> - 2014-03-21 23:36 -0500
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-22 15:46 +1100
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark H Harris <harrismh777@gmail.com> - 2014-03-21 23:59 -0500
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary wxjmfauth@gmail.com - 2014-03-22 01:54 -0700
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-22 10:54 +0000
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Terry Reedy <tjreedy@udel.edu> - 2014-03-22 01:24 -0400
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-22 09:50 +0000
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Terry Reedy <tjreedy@udel.edu> - 2014-03-22 06:14 -0400
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-22 16:32 +1100
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-03-22 11:25 -0400
            Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-22 10:51 +0000
            Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-22 14:50 +0000
              Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-23 02:09 +1100
                Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-23 01:07 +0000
      Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Chris Angelico <rosuav@gmail.com> - 2014-03-22 09:42 +1100
        Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:50 -0700
    Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-21 15:55 -0700
      Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary Terry Reedy <tjreedy@udel.edu> - 2014-03-21 21:39 -0400
        Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary cool-RR <ram.rachum@gmail.com> - 2014-03-22 03:57 -0700

csiph-web