I just googled the OP's question and found a StackOverflow question.<div>That question's solution mentions pypreprocessor.<br><br><div class="gmail_quote">On 6 August 2012 08:20, Steven W. Orr <span dir="ltr"><<a href="mailto:steveo@syslang.net" target="_blank">steveo@syslang.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/5/2012 12:43 AM, Ramchandra Apte wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Try pypreprocessor <<a href="http://code.google.com/p/pypreprocessor/" target="_blank">http://code.google.com/p/<u></u>pypreprocessor/</a>> .<br>
Better idea:<br>
You should be using the logging <<a href="http://docs.python.org/library/logging.html" target="_blank">http://docs.python.org/<u></u>library/logging.html</a>><div class="im"><br>
module if you want to print debug information quickly.It uses threads and is<br>
optimized to run fast.<br>
</div></blockquote>
<br>
I never saw pypreprocessor. Looks interesting. I have experience with Ned's cog preprocessor.<br>
<br>
<a href="http://nedbatchelder.com/code/cog/" target="_blank">http://nedbatchelder.com/code/<u></u>cog/</a><br>
<br>
I used this in something that was operating at the packet socket level. I had no time to test if debug was true.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.<br>
happened but none stranger than this. Does your driver's license say Organ ..0<br>
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000<br>
individuals! What if this weren't a hypothetical question?<br>
steveo at <a href="http://syslang.net" target="_blank">syslang.net</a><br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>