Eric Smith <e...@trueblade.com> added the comment:

I think the better design is to have 2 distinct APIs: Popen_shell and 
Popen_exec. I'm not wild about the name Popen_exec, suggestions welcome. 
Neither of these would accept a shell parameter.

For starters these could be convenience APIs that just call Popen with the 
correct shell= value, and check the type of args. We could ultimately deprecate 
Popen itself.

I don't see a use case where you programmatically compute the value of shell: 
it's always known as a function of how you're building up args. And even if 
such a rare case exists, you could select between the two APIs to call.

Whether at this point we can make this change is another issue, of course. I'm 
just trying to get at the best design. But if it's done over a number of 
releases I think it's doable.

----------

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

Reply via email to