Popular recipes by kaulie http://code.activestate.com/recipes/users/4193226/2015-12-04T02:51:42-08:00ActiveState Code RecipesPrint Hook (Python)
2015-12-04T02:51:42-08:00kauliehttp://code.activestate.com/recipes/users/4193226/http://code.activestate.com/recipes/579132-print-hook/
<p style="color: grey">
Python
recipe 579132
by <a href="/recipes/users/4193226/">kaulie</a>
(<a href="/recipes/tags/debugging/">debugging</a>).
</p>
<p>Hook on stdout and stderr so that we can handle
printing of text,error differently
e.g in GUI base application divert text to a log window.</p>