Message97442
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:29 | alanjds | set | recipients:
+ alanjds, tim.peters, mhammond, pysquared, amaury.forgeotdarc, amiseler, tim_evans |
2010-01-08 21:32:28 | alanjds | set | messageid: <1262986348.72.0.166328817382.issue706263@psf.upfronthosting.co.za> |
2010-01-08 21:32:27 | alanjds | link | issue706263 messages |
2010-01-08 21:32:27 | alanjds | create | |
|