shlex, unicode, and subprocess.Popen on Windows

python at python at
Mon Aug 30 16:24:26 CEST 2010

Hi Chris,

> It's a bug:

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?


More information about the Python-list mailing list