[issue11395] print(s) fails on Windows with long strings
Santoso Wijaya
report at bugs.python.org
Sun Mar 6 23:58:37 CET 2011
Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
Attached a modified patch that should work against 3.2+ heads:
- Added `isatty` bit field in isatty that's evaluated during its
construction. This should eliminate the need to call `isatty()` on
every write.
- Cap buffer length to 32767 (4 * 1024 - 1) when writing to a tty.
- Test this by supplying `CREATE_NEW_CONSOLE` to `subprocess.call`, so
we do not flood regrtest's console output.
These changes are conditionally compiled on Windows only.
Should a similar patch be made for 2.7+ (maybe earlier)?
----------
Added file: http://bugs.python.org/file21021/winconsole_large_py33.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11395>
_______________________________________
More information about the Python-bugs-list
mailing list