Stopping a fucntion from printing its output on screen

sophie_newbie paulgeeleher at gmail.com
Wed Oct 17 10:57:04 EDT 2007


Hi, in my program i need to call a couple of functions that do some
stuff but they always print their output on screen. But I don't want
them to print anything on the screen. Is there any way I can disable
it from doing this, like redirect the output to somewhere else? But
later on in the program i then need to print other stuff so i'd need
to re-enable printing too. Any ideas?




More information about the Python-list mailing list