[issue706263] print raises exception when no console available
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Nov 17 17:25:34 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Python 3.0 already discards the output in this case (see issue1415):
it sets sys.stdout=None and silently ignores prints to the None file.
I think this is the correct behavior, but I'm not sure this can be
backported to 2.7, because of compatibility issues.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list