Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'warnings': 0.03; 'handler': 0.04; 'subject:Python': 0.05; 'python': 0.09; 'exception,': 0.09; 'handlers': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; ':-)': 0.13; '3.3,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'roy': 0.16; 'wrote:': 0.17; 'issue,': 0.17; 'mechanism': 0.17; 'jan': 0.18; 'module': 0.19; '3.2': 0.22; 'posted': 0.22; 'nearly': 0.23; 'url:bugs': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'logging': 0.27; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'knows': 0.30; 'url:python': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'list': 0.35; 'received:org': 0.36; 'but': 0.36; 'wanted': 0.36; 'url:org': 0.36; 'subject: (': 0.36; 'why': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'more': 0.63; 'maintenance': 0.65; 'stuck': 0.65; 'finally': 0.66; 'smith': 0.71; 'article': 0.78; '(once': 0.84; 'difference.': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Confused about logger config from within Python (3) Date: Sat, 29 Dec 2012 19:18:46 -0500 References: <3149c22d-ae6d-43b4-8f88-3cc5fa91094c@googlegroups.com> <50de7a0a$0$29967$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356826759 news.xs4all.nl 6929 [2001:888:2000:d::a6]:57899 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35792 On 12/29/2012 8:48 AM, Roy Smith wrote: > In article <50de7a0a$0$29967$c3e8da3$5496439d@news.astraweb.com>, > Steven D'Aprano wrote: > >> In Python 3.2 and 3.3, the message about no handlers is not printed, >> which is an interesting difference. (Somebody who knows more about the >> logging package than I do might be able to state why that difference.) > > I hope that means that http://bugs.python.org/issue994421 has finally > been fixed :-) I added an update ;-). If Vijay wanted the message to be a warning rather than an exception, the warnings module and mechanism could have been used (once it was available -- I am not sure when that was). But I think a default handler is even better. Given that you disagreed with his disposition of the issue, you might have posted to this list for other opinions. I also hope you appreciate that Vijay has stuck with maintenance and upgrade of the module for nearly a decade now. -- Terry Jan Reedy