Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26603
| 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 | <steveo@syslang.net> |
| 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" <steveo@syslang.net> |
| 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> <CAExgZOi4TnCko2uEkup6sVKevYF0v7DcSctv4yLt1ydREce4sg@mail.gmail.com> |
| In-Reply-To | <CAExgZOi4TnCko2uEkup6sVKevYF0v7DcSctv4yLt1ydREce4sg@mail.gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2998.1344221413.4697.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 8/5/2012 12:43 AM, Ramchandra Apte wrote: > Try pypreprocessor <http://code.google.com/p/pypreprocessor/> . > Better idea: > You should be using the logging <http://docs.python.org/library/logging.html> > 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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
conditional running of code portion JW Huang <ngcbmy@gmail.com> - 2012-08-04 21:16 -0700
Re: conditional running of code portion Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-05 06:30 +0000
Re: conditional running of code portion Serhiy Storchaka <storchaka@gmail.com> - 2012-08-05 19:40 +0300
Re: conditional running of code portion Dieter Maurer <dieter@handshake.de> - 2012-08-06 19:02 +0200
Re: conditional running of code portion Serhiy Storchaka <storchaka@gmail.com> - 2012-08-06 23:59 +0300
Re: conditional running of code portion "Steven W. Orr" <steveo@syslang.net> - 2012-08-05 22:50 -0400
csiph-web