[issue11395] print(s) fails on Windows with long strings
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Mar 7 00:41:31 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
On Windows, isatty() is a cheap call: a simple lookup in the _ioinfo structure. And dup2() can still change the destination of a file descriptor, so the new attribute can be out of sync...
I suggest to call isatty() on every write.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11395>
_______________________________________
More information about the Python-bugs-list
mailing list