Gregory P. Smith added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17488>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to