Print Hook

Print Hook Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 271
  • Released: Mar 2, 2007

Print Hook Description

This class gets all output directed to stdout (e.g by print statements) and stderr and redirects it to a user defined function.

Print Hook Bookmark

Hyperlink code:
Hyperlink for Forum code:

Print Hook Script Download Notice

Top 4 Download periodically updates information of Print Hook script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Print Hook torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Automatic indentation of output

This script is an output stream wrapper; possibly useful for debugging code with print statements. When write() is called, it makes a note of the calling frame. The indentation level is equal to the number of frames in the call stack which ...
Python

Debug statements include function name

... each debug and error message before it is printed out. In addition, each of these messages can ... to multiple handler objects that can direct the output to log files, e-mails, stdout, etc. ...
Python

TryFinally

... script is a convenient way to deeply nest try/finally statements. It is appropriate for complicated resource initialization and destruction. For instance, if you have a list of 50 things that need to get intialized and later destructed via using try/finally (especially if you need to create the list dynamically) this function ...
Python

Pythologic Prolog syntax in Python

... to enable writing Python functions which include Prolog-like statements. Such functions load a Prolog-like database. When coupled with a suitable inference engine for logic databases, this is a way to add logical programming -- the last unsupported major paradigm -- to Python. This script shows you how to deal with ...
Python

Read write object for pkg config files

... when executed, will read a .pc file and print the result of processing. The result will be ... equivalent, but not identical. Re-running on its own output should produce identical results. ...
Python