Message130197
| Author |
santoso.wijaya |
| Recipients |
amaury.forgeotdarc, casevh, neologix, pitrou, santoso.wijaya, terry.reedy, vstinner |
| Date |
2011年03月06日.22:58:35 |
| SpamBayes Score |
0.002872346 |
| Marked as misclassified |
No |
| Message-id |
<1299452317.32.0.171643770415.issue11395@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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)? |
|