And as I said, I believe something like this should be added to the Python stdlib. If no one has a better implementation I'll start working on a proposal.
Great! At the moment I have no better implementation. We have a dirty work around in our code base, and a solution in Python stdlib would be very good.
Up to now we must use Python 2.7, so a backport (like subprocess32) would be needed. Is this possible?
Please CC your proposal to me.
Regards, Thomas Güttler