Message185068
The number of things we'll break by changing this errant behavior to be _correct_ is way less than the number of things that are already broken due to it.
If the bufsize=0 default is left in place the behavior differs between Windows and POSIX platforms and anyone porting code from Python 2 will be caught by surprise. The behavior change introduced in 3.2 with the new subprocess module was 100% unintentional and does not match that of 2.7 or of the subprocess32 backport to 2.x that more people use _today_ than use 3.x at all.
I think being a purist about this being an API change here is going to cause problems. 3.x hasn't seen wide adoption yet, its use is ramping up and code is being ported from 2. The bug this behavior causes is completely non-obvious and escapes most testing. It can occur at random times, more likely on loaded systems than idle ones.
Grepping through the standard library, there are several more instances of uses of subprocess that are suspect given this behavior change. "Fixing" them all instead of addressing the cause of the problem seems unwise. |
|
Date |
User |
Action |
Args |
2013-03-23 17:22:24 | gregory.p.smith | set | recipients:
+ gregory.p.smith, georg.brandl, larry |
2013-03-23 17:22:24 | gregory.p.smith | set | messageid: <1364059344.27.0.706974439401.issue17488@psf.upfronthosting.co.za> |
2013-03-23 17:22:24 | gregory.p.smith | link | issue17488 messages |
2013-03-23 17:22:23 | gregory.p.smith | create | |
|