Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'handler': 0.05; 'output': 0.05; 'startup': 0.05; 'debug': 0.07; 'dan': 0.09; 'oh,': 0.09; 'yeah,': 0.09; '(just': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'introduces': 0.16; 'stderr': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'module': 0.19; 'fit': 0.20; 'command': 0.22; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'subject:problem': 0.24; 'mon,': 0.24; 'file.': 0.24; 'logging': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'quickly': 0.29; 'is?': 0.30; "i'm": 0.30; 'testing.': 0.31; 'development.': 0.33; 'not.': 0.33; 'subject:with': 0.35; 'except': 0.35; 'johnson': 0.35; 'module.': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'little': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'release': 0.40; 'even': 0.60; 'easy': 0.60; 'subject:"': 0.60; 'most': 0.60; 'subject:The': 0.64; 'provide': 0.64; 'more': 0.64; 'feeding,': 0.84; 'hate': 0.91; 'rick': 0.93; '2013': 0.98 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sun, 02 Jun 2013 23:49:28 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: PyWart: The problem with "print" References: <687dea63-84da-4c45-9366-cb5a10665d1f@googlegroups.com> <7fea8f79-830c-4d82-a899-eb2fcc1e6cdc@googlegroups.com> In-Reply-To: <7fea8f79-830c-4d82-a899-eb2fcc1e6cdc@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370238575 news.xs4all.nl 15951 [2001:888:2000:d::a6]:52456 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46770 On 06/02/2013 12:18 PM, Rick Johnson wrote: > On Sunday, June 2, 2013 12:49:02 PM UTC-5, Dan Sommers wrote: >> On Mon, 03 Jun 2013 03:20:52 +1000, Chris Angelico wrote: >>> On Mon, Jun 3, 2013 at 3:04 AM, Rick Johnson >> [...] Or use the logging module. It's easy to get going quickly >> (just call logging.basicConfig at startup time), and with a little >> care and feeding, you can control the output in more ways than can >> fit into the margin. Oh, yeah, I'm sure it introduces some >> overhead. So does everything else. > > I hate log files, at least during development or testing. I prefer to > debug on the command line or using my IDE. Log files are for release > time, not development. Except that it's not. Have you even looked at what the logging module is? It most certainly can log to stderr if you provide no logging handler to write to a file.