[Python-ideas] Subprocess: Add an encoding argument
Moritz Beber
moritz.beber at gmail.com
Sat Aug 30 14:37:10 CEST 2014
Hi,
On Sat, Aug 30, 2014 at 2:10 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Sat, 30 Aug 2014 13:05:02 +0100
> Paul Moore <p.f.moore at gmail.com> wrote:
> >
> > Sounds reasonable. I'll look into that (no promises on timescales :-))
> > In practice, I doubt we'd need per-stram encodings particularly often,
> > so I like the idea of *not* clutteringthe API to cope with them. I'm
> > curious, by the way - what arguments do you consider as "legacy
> > baggage" (a lot of them seem to me to be OS-specific and/or
> > specialised rather than legacy).
>
> I was thinking mostly about universal_newlines. Perhaps preexec_fn
> applies too, since it's dangerous (read: unstable).
>
>
>
preexec_fn is important though if you want to run something with different
uid and gid from a sudo script, for example.
Cheers,
Moritz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140830/9a53aa1c/attachment.html>
More information about the Python-ideas
mailing list