Alan Justino <alan.just...@yahoo.com.br> added the comment: FWIW: I don't know if it changes anything, but when deploying Django projects on some clients who uses Windows as server, I'm using this piece of code to workarround this issue:
## Fixes "IOError: [Errno 9] Bad file descriptor" when in pythonw.exe of Windows if sys.platform.find('win') != -1 and sys.executable.find('pythonw') != -1: blackhole = file(os.devnull, 'w') sys.stdout = sys.stderr = blackhole ## Is not my intention to remove print statments neither to send they to a file. For this I'm using logging module. I really expect they to be silently ignored, bothering not my user. ---------- nosy: +alanjds versions: +Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue706263> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com