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


Groups > comp.lang.python > #56245

Re: How to streamingly read text file and display whenever updated text

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:text': 0.05; 'practice,': 0.07; 'subject:file': 0.07; 'lawrence': 0.09; 'subject:How': 0.10; 'clause.': 0.16; 'emit': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rogue': 0.16; 'wrote:': 0.18; 'instance,': 0.24; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; 'catching': 0.31; "can't": 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'e.g.': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'bad': 0.39; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'more': 0.64; 'bare': 0.84; 'subject:read': 0.84; '2013': 0.98
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:to :content-type; bh=c0coJ46Uqpto3nCnN+ZD1e+42f9BBAP/pE07lIzAgto=; b=tzMW1qxsh7+oqvcNKMmjEpMf9NUIvmOsuQO2NsrY3NsDTLXqBVBH9Ldi3vTdvQRTn/ 5YfXv6M/srrEIz4ErJeVFO0HtDpJRcuSn0YfmACzA73xO3Wbw1Elm7+R3R+142TDxNnd d0+2XOgJGPtvzHoO6lAkVHUzYjXx7dq6NNu0fUJhVzuezk/4C0IXufiCV5gKsU7+KwtW 5NoU94QM5QWzdZSBQafbFOU+dSWt7cosCRYfPIg+6wUE+pO8tEHYv7NnqW1lcH6Xe9dv xzOSRNxS85+LSgA4biU95r5aw5/MDgu1cpTifH/Gyw6qGw9j5cAthcRjaDA9yLcjFer9 VfNA==
MIME-Version 1.0
X-Received by 10.68.196.227 with SMTP id ip3mr877135pbc.163.1381057420659; Sun, 06 Oct 2013 04:03:40 -0700 (PDT)
In-Reply-To <l2ref8$efd$1@ger.gmane.org>
References <04ee91f9-1cbf-4364-bca3-da25aa4db45f@googlegroups.com> <mailman.739.1380970927.18130.python-list@python.org> <f0461031-fd7c-42ff-b88b-c77cffcdce76@googlegroups.com> <5250e1d6$0$29984$c3e8da3$5496439d@news.astraweb.com> <l2ref8$efd$1@ger.gmane.org>
Date Sun, 6 Oct 2013 22:03:40 +1100
Subject Re: How to streamingly read text file and display whenever updated text
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.774.1381057429.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1381057429 news.xs4all.nl 15988 [2001:888:2000:d::a6]:38093
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56245

Show key headers only | View raw


On Sun, Oct 6, 2013 at 9:36 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> Also note that a bare except is extremely bad practice, e.g. you can't stop
> rogue programs with a CTRL-C

Or to be more accurate, a Ctrl-C will cause a jump to your except
clause. Since, in this instance, that's going to emit and die, Ctrl-C
will still stop the program. But yes, catching KeyboardInterrupt
usually isn't your intention.

ChrisA

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


Thread

How to streamingly read text file and display whenever updated text galeomaga@gmail.com - 2013-10-05 00:38 -0700
  Re: How to streamingly read text file and display whenever updated text galeomaga@gmail.com - 2013-10-05 00:54 -0700
    Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-05 09:12 +0100
  Re: How to streamingly read text file and display whenever updated text "James Harris" <james.harris.1@gmail.com> - 2013-10-05 09:06 +0100
    Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-05 09:14 +0100
  Re: How to streamingly read text file and display whenever updated text Nobody <nobody@nowhere.com> - 2013-10-05 11:25 +0100
  Re: How to streamingly read text file and display whenever updated text Joost Molenaar <j.j.molenaar@gmail.com> - 2013-10-05 13:02 +0200
    Re: How to streamingly read text file and display whenever updated text galeomaga@gmail.com - 2013-10-05 20:17 -0700
      Re: How to streamingly read text file and display whenever updated text Chris Angelico <rosuav@gmail.com> - 2013-10-06 14:28 +1100
      Re: How to streamingly read text file and display whenever updated text Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-06 04:06 +0000
        Re: How to streamingly read text file and display whenever updated text galeomaga@gmail.com - 2013-10-06 01:49 -0700
        Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-06 11:36 +0100
        Re: How to streamingly read text file and display whenever updated text Chris Angelico <rosuav@gmail.com> - 2013-10-06 22:03 +1100
        Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-06 12:13 +0100
        Re: How to streamingly read text file and display whenever updated text Chris Angelico <rosuav@gmail.com> - 2013-10-06 22:15 +1100
        Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-06 12:31 +0100
        Re: How to streamingly read text file and display whenever updated text Chris Angelico <rosuav@gmail.com> - 2013-10-06 22:44 +1100
          Re: How to streamingly read text file and display whenever updated text galeomaga@gmail.com - 2013-10-06 18:54 -0700
            Re: How to streamingly read text file and display whenever updated text Andreas Perstinger <andipersti@gmail.com> - 2013-10-07 11:52 +0200
  Re: How to streamingly read text file and display whenever updated text Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-05 12:08 +0100

csiph-web