Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
forget my posts, Steve's solution is much more maintanable when you(or someone else)'ll revisit the code in a couple of years. i would go with what he wrote. Cheers, Ido. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to stop info output on screen

2005-09-30 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi, > > Does someone know how to stop "the information output on screen"? Now > when I run my code, it outputs a lot of message when calling other > libraries, together with the info with the print command I used. > > How can I mask these info on screen when calling oth

Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
more on the subject: your "print" statments will also be written to that file that sys.stdout directs to, so maybe that wasn't exactly the solution you wanted to hear. ok, not the nicest solution but maybe it will help you anyway: bind sys.stdout at the begining of the program to a file (don't for

Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
maybe you can try replaceing sys.stdout and/or sys.stderr with a just a simple file? then everything will be written to that file instead of desplayed on the console. Cheers, Ido. -- http://mail.python.org/mailman/listinfo/python-list