Author santoso.wijaya
Recipients amaury.forgeotdarc, casevh, neologix, pitrou, santoso.wijaya, terry.reedy, vstinner
Date 2011-03-06.22:58:35
SpamBayes Score 0.00287235
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)?
History
Date User Action Args
2011-03-06 22:58:37santoso.wijayasetrecipients: + santoso.wijaya, terry.reedy, amaury.forgeotdarc, pitrou, vstinner, casevh, neologix
2011-03-06 22:58:37santoso.wijayasetmessageid: <1299452317.32.0.171643770415.issue11395@psf.upfronthosting.co.za>
2011-03-06 22:58:36santoso.wijayalinkissue11395 messages
2011-03-06 22:58:35santoso.wijayacreate