This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alanjds
Recipients alanjds, amaury.forgeotdarc, amiseler, mhammond, pysquared, tim.peters, tim_evans
Date 2010-01-08.21:32:27
SpamBayes Score 1.1482636e-07
Marked as misclassified No
Message-id <1262986348.72.0.166328817382.issue706263@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1262986348.72.0.166328817382.issue706263@psf.upfronthosting.co.za>
2010-01-08 21:32:27alanjdslinkissue706263 messages
2010-01-08 21:32:27alanjdscreate