conditional running of code portion

Ramchandra Apte maniandram01 at gmail.com
Mon Aug 6 14:48:03 CEST 2012


I just googled the OP's question and found a StackOverflow question.
That question's solution mentions pypreprocessor.

On 6 August 2012 08:20, Steven W. Orr <steveo at syslang.net> wrote:

> On 8/5/2012 12:43 AM, Ramchandra Apte wrote:
>
>> Try pypreprocessor <http://code.google.com/p/**pypreprocessor/<http://code.google.com/p/pypreprocessor/>>
>> .
>> Better idea:
>> You should be using the logging <http://docs.python.org/**
>> library/logging.html <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/ <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
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120806/817a8ffe/attachment.html>


More information about the Python-list mailing list