¡@

Home 

python Programming Glossary: dummystream

Freezing a dual-mode (GUI and console) application using cx_Freeze

http://stackoverflow.com/questions/2883205/freezing-a-dual-mode-gui-and-console-application-using-cx-freeze

sys.stdout.write n sys.stdout.flush except IOError class dummyStream ''' dummyStream behaves like a stream but does nothing. '''.. n sys.stdout.flush except IOError class dummyStream ''' dummyStream behaves like a stream but does nothing. ''' def __init__ self.. self pass # and now redirect all default streams to this dummyStream sys.stdout dummyStream sys.stderr dummyStream sys.stdin dummyStream..