How to run an EXE, with argument, capture output value

Tim Harig usernet at ilthio.net
Thu Nov 18 23:36:51 CET 2010


On 2010-11-18, Jean-Michel Pichavant <jeanmichel at sequans.com> wrote:
> Tim Harig wrote:
>> If you are not already, I would highly suggest using Python3 with the
                                                                ^^^^
>> subprocess module:
> Suggesting subprocess is a good idea, *highly* suggesting python3 is 
> questionable. The above code works in python 2. Many libraries (those 
> included batteries) have not been ported yet to python 3.
> Py3 is a better core language than py2, but for now, less featured.

I didn't, and I don't, recommend Python3 over Python2 for just any
purpose.I recommended Python3's subprocess module over the Python2's
subprocess module if that is indeed possible.

I happen to be one of those that feels this transition was terribly
mis-handled and that there should have been provisions to allow both
versions to either be maintained together or to allow modules from both
versions to work together.  I don't really have a huge preference for
either version; but, having to deal with both of them has given the
project a black eye.



More information about the Python-list mailing list