python 2.7.12 on Linux behaving differently than on Windows

Marko Rauhamaa marko at pacujo.net
Mon Dec 5 12:23:31 EST 2016


Chris Angelico <rosuav at gmail.com>:

> On Tue, Dec 6, 2016 at 3:53 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> In recent years, I've been disillusioned with bash and started using
>> Python more and more where I would previously have used bash.
>> Python's explicit syntax does automatically give you a level of
>> security, but I must say the subprocess.Popen.communicate syntax is
>> painful as hell. Your traditional one-liners turn into five-liners,
>> and a casual observer will have a slightly hard time understanding
>> what's going on.
>
> Congratulations. You've just discovered why bash is useful.

Bash is nice, too nice. It makes it easy to write code that's riddled
with security holes. The glorious Unix tradition is to ignore the
pitfalls and forge ahead come what may.


Marko


More information about the Python-list mailing list