shlex, unicode, and subprocess.Popen on Windows

python at bdurham.com python at bdurham.com
Mon Aug 30 10:24:26 EDT 2010


Hi Chris,

> It's a bug: http://bugs.python.org/issue1170

Thanks for pointing out the shlex bug. My concern was that shlex had
Windows specific Unicode limitations because of the way the Windows
shell so poorly supports unicode output.

> Kudos for avoiding shell=True

My understanding is that the only time one needs to use shell=True is
when they are 'executing' a non-executable file whose executable must be
discovered via file association rules? Does that sound accurate?

Malcolm




More information about the Python-list mailing list