conditional running of code portion

Steven W. Orr steveo at syslang.net
Mon Aug 6 04:50:02 CEST 2012


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



More information about the Python-list mailing list