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


Groups > comp.lang.python > #80301

Re: Misunderstanding buffering - flushing isn't

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'nicely': 0.07; 'converted': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:github': 0.09; 'python': 0.11; 'language.': 0.14; '"an': 0.16; 'contexts,': 0.16; 'left,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sadly': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'generally': 0.29; "i'm": 0.30; 'url:06': 0.31; 'file': 0.32; 'could': 0.34; 'but': 0.35; 'really': 0.36; '(we': 0.36; 'books,': 0.36; 'being': 0.38; 'nov': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'blank': 0.60; 'liked': 0.60; 'ago.': 0.61; 'new': 0.61; "you're": 0.61; 'show': 0.63; 'name': 0.63; 'our': 0.64; 'school': 0.64; 'great': 0.65; 'teach': 0.65; 'charset:windows-1252': 0.65; 'url:11': 0.68; 'article': 0.77; 'directions,': 0.84; 'late,': 0.84; 'received:2': 0.84; 'subject:skip:M 10': 0.84; 'url:2014': 0.84; 'yours': 0.88
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Misunderstanding buffering - flushing isn't
Date Thu, 06 Nov 2014 02:14:41 +0000
References <mailman.15506.1415205889.18130.python-list@python.org> <545a5e88$0$2882$e4fe514c@news.xs4all.nl> <CANc-5UxNSmyNixvaf8oN5p6McK=Vk5+fFRHW8nv8OrzOOfTuxQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-2-98-204-224.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
In-Reply-To <CANc-5UxNSmyNixvaf8oN5p6McK=Vk5+fFRHW8nv8OrzOOfTuxQ@mail.gmail.com>
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.15525.1415240097.18130.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415240097 news.xs4all.nl 2974 [2001:888:2000:d::a6]:37207
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80301

Show key headers only | View raw


On 05/11/2014 17:54, Skip Montanaro wrote:
> On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong <irmen.NOSPAM@xs4all.nl> wrote:
>> Any reason you're not using the logging module and get it all nicely dumped into a log
>> file instead?
>
> I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
> about as old as I am in Python years), print was all we had. (We also
> walked uphill to school in both directions, in the snow.) While I use
> the logging module in other contexts, I never really liked it, and
> generally use it grudgingly.
>
> Skip
>

My approach was much like yours but I was converted a couple of years 
ago.  Sadly both the name of the author and the title of the article 
left, as the late, great Spike Milligan said in one of his books, "an 
indelible blank on my mind" :)

However in an attempt to show that you can teach a fellow old fart new 
tricks could an article like this help 
http://fruch.github.io/2014/11/06/taming-the-logging-formatter/ ?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Thread

Misunderstanding buffering - flushing isn't Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-05 10:44 -0600
  Re: Misunderstanding buffering - flushing isn't Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-11-05 18:29 +0100
    Re: Misunderstanding buffering - flushing isn't Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-05 11:54 -0600
    Re: Misunderstanding buffering - flushing isn't Chris Angelico <rosuav@gmail.com> - 2014-11-06 05:03 +1100
    Re: Misunderstanding buffering - flushing isn't Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-06 02:14 +0000

csiph-web