[issue9503] print statement hangs Windows service

Amaury Forgeot d'Arc report at bugs.python.org
Fri Sep 10 08:49:25 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Closing as a duplicate of issue706263.

Instead of changing all print statements, you could set sys.stdout to another file, for example:
    sys.stdout=StringIO()
or another object that simply discards written data.

----------
nosy: +amaury.forgeotdarc
resolution:  -> duplicate
status: open -> closed
superseder:  -> print raises exception when no console available

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9503>
_______________________________________


More information about the Python-bugs-list mailing list