Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.082 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'debug': 0.05; 'socket': 0.05; 'subject:code': 0.07; 'question?': 0.09; 'zero.': 0.09; 'fruit': 0.16; 'hypothetical': 0.16; 'idea:': 0.16; 'threads': 0.16; 'wrote:': 0.17; 'module': 0.19; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'am,': 0.27; 'logging': 0.27; 'run': 0.28; 'fast.': 0.29; 'url:code': 0.29; 'this.': 0.29; 'url:python': 0.32; 'print': 0.32; 'true.': 0.33; 'to:addr:python-list': 0.33; 'something': 0.35; 'but': 0.36; 'url:org': 0.36; 'level.': 0.36; 'url:library': 0.36; 'test': 0.36; 'should': 0.36; 'operating': 0.36; 'does': 0.37; 'uses': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'your': 0.60; 'url:p': 0.63; 'information': 0.63; 'license': 0.65; 'god': 0.66; 'saw': 0.75; "driver's": 0.84; 'flies': 0.84; 'holes': 0.84; 'me!': 0.84; 'subject:running': 0.84; '000': 0.93; 'divided': 0.93 Date: Sun, 05 Aug 2012 22:50:02 -0400 From: "Steven W. Orr" Organization: SysLang, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: python-list@python.org Subject: Re: conditional running of code portion References: <0a61aed2-bd14-4022-bf59-a3bb3af55b3c@sn4g2000pbc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344221413 news.xs4all.nl 6877 [2001:888:2000:d::a6]:55515 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26603 On 8/5/2012 12:43 AM, Ramchandra Apte wrote: > Try pypreprocessor . > Better idea: > You should be using the logging > module if you want to print debug information quickly.It uses threads and is > optimized to run fast. I never saw pypreprocessor. Looks interesting. I have experience with Ned's cog preprocessor. http://nedbatchelder.com/code/cog/ I used this in something that was operating at the packet socket level. I had no time to test if debug was true. -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net