Santoso Wijaya <santoso.wij...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11395> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com