Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'output': 0.05; 'debug': 0.07; 'decorator': 0.09; 'url:github': 0.09; 'wrote': 0.14; 'variable.': 0.16; 'wow,': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'people,': 0.24; 'looks': 0.24; 'header:In-Reply- To:1': 0.27; 'matching': 0.30; 'add': 0.35; 'there': 0.35; 'really': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'ability': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'tag': 0.61 X-Virus-Scanned: amavisd-new at harvee.org Date: Sun, 27 Oct 2013 13:49:09 -0400 From: "Eric S. Johansson" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Debugging decorator References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382896629 news.xs4all.nl 15971 [2001:888:2000:d::a6]:35053 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57754 On 10/25/2013 7:55 PM, Ya=C5=9Far Arabac=C4=B1 wrote: > Hi people, > > I wrote this decorator: https://gist.github.com/yasar11732/7163528 > > wow, this looks really powerful. I would like to add the ability to=20 associate a tag or set of tags with the decorator so that the debug=20 output only happens when there is a matching tag in some global or=20 environmental variable.