Author alanjds
Recipients alanjds, amaury.forgeotdarc, amiseler, mhammond, pysquared, tim.peters, tim_evans
Date 2010-01-08.21:32:27
SpamBayes Score 1.14826e-07
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2010-01-08 21:32:29alanjdssetrecipients: + alanjds, tim.peters, mhammond, pysquared, amaury.forgeotdarc, amiseler, tim_evans
2010-01-08 21:32:28alanjdssetmessageid: <>
2010-01-08 21:32:27alanjdslinkissue706263 messages
2010-01-08 21:32:27alanjdscreate